summaryrefslogtreecommitdiff
blob: 8f76e3b6aa650ee254d367a2d0da7f8e1dcb4cd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module Update.SetRequestedHelp exposing (apply_to)
-- Elm -------------------------------------------------------------------------

-- Battlemap -------------------------------------------------------------------
import Struct.Event
import Struct.HelpRequest
import Struct.Model

--------------------------------------------------------------------------------
-- LOCAL -----------------------------------------------------------------------
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
-- EXPORTED --------------------------------------------------------------------
--------------------------------------------------------------------------------
apply_to : (
      Struct.Model.Type ->
      Struct.HelpRequest.Type ->
      (Struct.Model.Type, (Cmd Struct.Event.Type))
   )
apply_to model help_request =
   ({model | help_request = help_request}, Cmd.none)