summaryrefslogtreecommitdiff
blob: ecda85b0a1a3fedb84b235d5184cc5a5c4af6881 (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
module Struct.Event exposing (Type(..))

-- Elm -------------------------------------------------------------------------
import Http

-- Battlemap -------------------------------------------------------------------
import Struct.Character
import Struct.Direction
import Struct.Location
import Struct.ServerReply
import Struct.UI

--------------------------------------------------------------------------------
-- TYPES -----------------------------------------------------------------------
--------------------------------------------------------------------------------
type Type =
   DirectionRequested Struct.Direction.Type
   | TileSelected Struct.Location.Ref
   | CharacterSelected Struct.Character.Ref
   | CharacterInfoRequested Struct.Character.Ref
   | TurnEnded
   | ScaleChangeRequested Float
   | TabSelected Struct.UI.Tab
   | ServerReplied (Result Http.Error (List Struct.ServerReply.Type))
   | DebugTeamSwitchRequest
   | DebugLoadBattlemapRequest
   | WeaponSwitchRequest