summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/battle/src/Struct/ServerReply.elm')
-rw-r--r--src/battle/src/Struct/ServerReply.elm33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/battle/src/Struct/ServerReply.elm b/src/battle/src/Struct/ServerReply.elm
new file mode 100644
index 0000000..87325a5
--- /dev/null
+++ b/src/battle/src/Struct/ServerReply.elm
@@ -0,0 +1,33 @@
+module Struct.ServerReply exposing (Type(..))
+
+-- Elm -------------------------------------------------------------------------
+
+-- Map -------------------------------------------------------------------
+import Struct.Armor
+import Struct.Map
+import Struct.Character
+import Struct.Tile
+import Struct.TurnResult
+import Struct.Weapon
+
+--------------------------------------------------------------------------------
+-- TYPES -----------------------------------------------------------------------
+--------------------------------------------------------------------------------
+
+type Type =
+ Okay
+ | AddArmor Struct.Armor.Type
+ | AddWeapon Struct.Weapon.Type
+ | AddCharacter (Struct.Character.Type, Int, Int, Int)
+ | AddTile Struct.Tile.Type
+ | SetMap Struct.Map.Type
+ | TurnResults (List Struct.TurnResult.Type)
+ | SetTimeline (List Struct.TurnResult.Type)
+
+--------------------------------------------------------------------------------
+-- LOCAL -----------------------------------------------------------------------
+--------------------------------------------------------------------------------
+
+--------------------------------------------------------------------------------
+-- EXPORTED --------------------------------------------------------------------
+--------------------------------------------------------------------------------