From 06eaf5b16fb88113a39380b70dd9e0b7d5a8bfca Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Thu, 17 Jan 2019 15:08:01 +0100 Subject: ... --- src/shared/struct/shr_battle_summary.erl | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/shared/struct/shr_battle_summary.erl') diff --git a/src/shared/struct/shr_battle_summary.erl b/src/shared/struct/shr_battle_summary.erl index 1d9934a..812211e 100644 --- a/src/shared/struct/shr_battle_summary.erl +++ b/src/shared/struct/shr_battle_summary.erl @@ -31,7 +31,8 @@ ( [ new/4, - none/0 + none/1, + none/2 ] ). @@ -102,14 +103,17 @@ new (ID, Name, Mode, Category) -> is_pending = true }. --spec none () -> type(). -none () -> +-spec none (category()) -> type(). +none (Category) -> none(none, Category). + +-spec none (mode(), category()) -> type(). +none (Mode, Category) -> #battle_summary { id = ataxia_id:null(), name = <<"">>, - mode = none, - category = event, + mode = Mode, + category = Category, deadline = ataxia_time:never(), is_players_turn = false, is_pending = false -- cgit v1.2.3-70-g09d2