From e8ab45f453bf095a09672c1685315d8d52472f11 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Wed, 9 Jan 2019 19:00:32 +0100 Subject: [BROKEN] Continuing to work on that bounty... --- src/shared/struct/shr_battle_summary.erl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/shared/struct') diff --git a/src/shared/struct/shr_battle_summary.erl b/src/shared/struct/shr_battle_summary.erl index 5169b2c..245ee87 100644 --- a/src/shared/struct/shr_battle_summary.erl +++ b/src/shared/struct/shr_battle_summary.erl @@ -3,14 +3,15 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% TYPES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --type category() :: (attack | defend | none). +-type mode() :: (attack | defend | none). +-type category() :: (event | invasion | campaign). -record ( battle_summary, { id :: ataxia_id:type(), - category :: category(), + mode :: mode(), name :: binary(), last_edit :: binary(), is_players_turn :: boolean() @@ -19,7 +20,7 @@ -opaque type() :: #battle_summary{}. --export_type([type/0, category/0]). +-export_type([type/0, mode/0, category/0]). %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% EXPORTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -83,7 +84,7 @@ new (ID, Name, Time, IsPlayersTurn) -> { id = ID, name = Name, - category = none, + mode = none, last_edit = Time, is_players_turn = IsPlayersTurn }. @@ -94,7 +95,7 @@ none () -> { id = <<"">>, name = <<"">>, - category = none, + mode = none, last_edit = <<"">>, is_players_turn = false }. -- cgit v1.2.3-70-g09d2