summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/battlemap/src/Send/CharacterTurn.elm')
-rw-r--r--src/battlemap/src/Send/CharacterTurn.elm9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/battlemap/src/Send/CharacterTurn.elm b/src/battlemap/src/Send/CharacterTurn.elm
index 750c9e8..9e2aa8f 100644
--- a/src/battlemap/src/Send/CharacterTurn.elm
+++ b/src/battlemap/src/Send/CharacterTurn.elm
@@ -3,6 +3,8 @@ module Send.CharacterTurn exposing (try_sending)
-- Elm -------------------------------------------------------------------------
import Http
+import Dict
+
import Json.Encode
import Json.Decode
@@ -69,11 +71,10 @@ try_encoding model =
_ ->
Nothing
-decode : (Json.Decode.Decoder String) --Send.Reply)
+decode : (Json.Decode.Decoder (Dict.Dict String (List String))) --Send.Reply)
decode =
- (Json.Decode.string ---Send.Reply
--- |> Json.Decode.required "types" (Json.Decode.list (Json.Decode.string))
--- |> Json.Decode.required "data" (Json.Decode.list (Json.Decode.string))
+ (Json.Decode.dict
+ (Json.Decode.list Json.Decode.string)
)
-- Reply: