summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/battle-map/BattleMap/Comm/SetMap.elm')
-rw-r--r--src/shared/battle-map/BattleMap/Comm/SetMap.elm28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/shared/battle-map/BattleMap/Comm/SetMap.elm b/src/shared/battle-map/BattleMap/Comm/SetMap.elm
new file mode 100644
index 0000000..bfe8425
--- /dev/null
+++ b/src/shared/battle-map/BattleMap/Comm/SetMap.elm
@@ -0,0 +1,28 @@
+module BattleMap.Comm.SetMap exposing (decode)
+
+-- Elm -------------------------------------------------------------------------
+import Json.Decode
+
+-- Battle Map ------------------------------------------------------------------
+import BattleMap.Struct.Map
+
+-- Local Module ----------------------------------------------------------------
+import Struct.ServerReply
+
+--------------------------------------------------------------------------------
+-- TYPES -----------------------------------------------------------------------
+--------------------------------------------------------------------------------
+
+--------------------------------------------------------------------------------
+-- LOCAL -----------------------------------------------------------------------
+--------------------------------------------------------------------------------
+
+--------------------------------------------------------------------------------
+-- EXPORTED --------------------------------------------------------------------
+--------------------------------------------------------------------------------
+decode : (Json.Decode.Decoder Struct.ServerReply.Type)
+decode =
+ (Json.Decode.map
+ (\map -> (Struct.ServerReply.SetMap map))
+ (BattleMap.Struct.Map.decoder)
+ )