From ac2a82ce6bbaeccdb0081bc637a5cbb13272efd9 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Mon, 26 Nov 2018 18:57:42 +0100 Subject: ... --- src/shared/struct/shr_battle_summary.erl | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (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 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. -- cgit v1.2.3-70-g09d2