blob: 183483f4297e9758002384387f96bbb07c2264bc (
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
26
27
28
29
|
module ElmModule.Init exposing (init)
-- Elm -------------------------------------------------------------------------
-- Extension -------------------------------------------------------------------
import Struct.Event
import Struct.Model
import Struct.ProgramInput
--------------------------------------------------------------------------------
-- TYPES -----------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- LOCAL -----------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- EXPORTED --------------------------------------------------------------------
--------------------------------------------------------------------------------
init : Struct.ProgramInput.Type -> (Struct.Model.Type, (Cmd Struct.Event.Type))
init inputs =
(
(Struct.Model.new
(Struct.ProgramInput.get_flags inputs)
(Struct.ProgramInput.get_players inputs)
),
Cmd.none
)
|