summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/map-editor/src/ElmModule/Update.elm')
-rw-r--r--src/map-editor/src/ElmModule/Update.elm8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map-editor/src/ElmModule/Update.elm b/src/map-editor/src/ElmModule/Update.elm
index e7bd797..76ee2e1 100644
--- a/src/map-editor/src/ElmModule/Update.elm
+++ b/src/map-editor/src/ElmModule/Update.elm
@@ -13,6 +13,8 @@ import Update.SelectTile
import Update.SetRequestedHelp
import Update.SetToolboxMode
import Update.SetToolboxShape
+import Update.SetToolboxTemplate
+import Update.ClearToolboxSelection
--------------------------------------------------------------------------------
-- LOCAL -----------------------------------------------------------------------
--------------------------------------------------------------------------------
@@ -59,3 +61,9 @@ update event model =
(Struct.Event.ModeRequested mode) ->
(Update.SetToolboxMode.apply_to new_model mode)
+
+ (Struct.Event.TemplateRequested id) ->
+ (Update.SetToolboxTemplate.apply_to new_model id)
+
+ Struct.Event.ClearSelectionRequested ->
+ (Update.ClearToolboxSelection.apply_to new_model)