aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-01-11 12:50:43 +0100
committernsensfel <SpamShield0@noot-noot.org>2018-01-11 12:50:43 +0100
commit94ed7fb32138013d6d21baeadba9019540ccc66d (patch)
treeda3c072d5fa66c3d6840e9ea1f6ec13567609b99 /src/battlemap/src/ElmModule/Update.elm
parentc67d87c4e22daff2e9c205ebc0a7e7c5124cd924 (diff)
downloadtacticians-client-94ed7fb32138013d6d21baeadba9019540ccc66d.zip
tacticians-client-94ed7fb32138013d6d21baeadba9019540ccc66d.tar.bz2
Separates click on char from map / from char menu
Diffstat (limited to 'src/battlemap/src/ElmModule/Update.elm')
-rw-r--r--src/battlemap/src/ElmModule/Update.elm4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/battlemap/src/ElmModule/Update.elm b/src/battlemap/src/ElmModule/Update.elm
index c4cd301..f0e62fe 100644
--- a/src/battlemap/src/ElmModule/Update.elm
+++ b/src/battlemap/src/ElmModule/Update.elm
@@ -9,6 +9,7 @@ import Struct.UI
import Struct.Model
import Update.ChangeScale
+import Update.DisplayCharacterInfo
import Update.EndTurn
import Update.HandleServerReply
import Update.RequestDirection
@@ -39,6 +40,9 @@ update event model =
(Struct.Event.CharacterSelected char_id) ->
(Update.SelectCharacter.apply_to new_model char_id)
+ (Struct.Event.CharacterInfoRequested char_id) ->
+ (Update.DisplayCharacterInfo.apply_to new_model char_id)
+
Struct.Event.TurnEnded ->
(Update.EndTurn.apply_to new_model)