summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'elm/battlemap/src/Shim/Model.elm')
-rw-r--r--elm/battlemap/src/Shim/Model.elm53
1 files changed, 53 insertions, 0 deletions
diff --git a/elm/battlemap/src/Shim/Model.elm b/elm/battlemap/src/Shim/Model.elm
new file mode 100644
index 0000000..03c2450
--- /dev/null
+++ b/elm/battlemap/src/Shim/Model.elm
@@ -0,0 +1,53 @@
+module Shim.Model exposing (generate)
+
+import Dict
+
+import Model
+
+import Shim.Battlemap
+
+--generate : Model.Type
+generate =
+ {
+ state = Model.Default,
+ selection = Nothing,
+ battlemap = (Shim.Battlemap.generate),
+ characters =
+ (Dict.insert
+ "2"
+ {
+ id = "2",
+ name = "Char2",
+ icon = "Icon2",
+ portrait = "Portrait2",
+ location = {x = 0, y = 1},
+ movement_points = 5,
+ atk_dist = 1
+ }
+ (Dict.insert
+ "1"
+ {
+ id = "1",
+ name = "Char1",
+ icon = "Icon1",
+ portrait = "Portrait1",
+ location = {x = 1, y = 0},
+ movement_points = 4,
+ atk_dist = 2
+ }
+ (Dict.insert
+ "0"
+ {
+ id = "0",
+ name = "Char0",
+ icon = "Icon0",
+ portrait = "Portrait0",
+ location = {x = 0, y = 0},
+ movement_points = 3,
+ atk_dist = 1
+ }
+ Dict.empty
+ )
+ )
+ )
+ }