summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/struct/shr_battle_summary.erl')
-rw-r--r--src/shared/struct/shr_battle_summary.erl13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/shared/struct/shr_battle_summary.erl b/src/shared/struct/shr_battle_summary.erl
index 3470575..9af72b4 100644
--- a/src/shared/struct/shr_battle_summary.erl
+++ b/src/shared/struct/shr_battle_summary.erl
@@ -24,7 +24,8 @@
-export
(
[
- new/4
+ new/4,
+ none/0
]
).
@@ -83,6 +84,16 @@ new (ID, Name, Time, IsPlayersTurn) ->
is_players_turn = IsPlayersTurn
}.
+-spec none () -> type().
+none () ->
+ #battle_summary
+ {
+ id = <<"">>,
+ name = <<"">>,
+ last_edit = <<"">>,
+ is_players_turn = false
+ }.
+
%%%% Accessors
-spec get_id (type()) -> binary().
get_id (BattleSummary) -> BattleSummary#battle_summary.id.