summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2019-01-09 19:00:32 +0100
committernsensfel <SpamShield0@noot-noot.org>2019-01-09 19:00:32 +0100
commite8ab45f453bf095a09672c1685315d8d52472f11 (patch)
tree5093a65dd0f27c5721cdcfac8279977914430c26 /src/shared/struct
parent8c2d1d61060cf60a205d3e1aea1855dcab33ae82 (diff)
[BROKEN] Continuing to work on that bounty...
Diffstat (limited to 'src/shared/struct')
-rw-r--r--src/shared/struct/shr_battle_summary.erl11
1 files changed, 6 insertions, 5 deletions
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
}.