blob: c0bd273332d97bbc6efde49e18b6cc520a74e074 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
module Update.SetToolboxShape exposing (apply_to)
-- Elm -------------------------------------------------------------------------
-- Battlemap -------------------------------------------------------------------
import Struct.Event
import Struct.Toolbox
import Struct.Model
--------------------------------------------------------------------------------
-- LOCAL -----------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- EXPORTED --------------------------------------------------------------------
--------------------------------------------------------------------------------
apply_to : (
Struct.Model.Type ->
Struct.Toolbox.Shape ->
(Struct.Model.Type, (Cmd Struct.Event.Type))
)
apply_to model shape =
(
{model | toolbox = (Struct.Toolbox.set_shape shape model.toolbox)},
Cmd.none
)
|