summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-01-17 15:08:01 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-01-17 15:08:01 +0100
commit06eaf5b16fb88113a39380b70dd9e0b7d5a8bfca (patch)
tree824c774bf4bc237f6c5d2e432981036f9b1867e5 /src/shared/struct/shr_battle_summary.erl
parente120388a529c1fdeeae40beb9391c86c92c1ac07 (diff)
...
Diffstat (limited to 'src/shared/struct/shr_battle_summary.erl')
-rw-r--r--src/shared/struct/shr_battle_summary.erl14
1 files changed, 9 insertions, 5 deletions
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