Added Add Player Event
This commit is contained in:
parent
06cbdb7d76
commit
0292ff06c1
1 changed files with 4 additions and 3 deletions
|
@ -17,20 +17,21 @@ $(deriveJSON defaultOptions {sumEncoding = defaultTaggedObject {tagFieldName = "
|
||||||
|
|
||||||
data JSONRequest
|
data JSONRequest
|
||||||
= SetPlayerTickR {sptRplayerUUID :: U.UUID, sptRtick :: Tick}
|
= SetPlayerTickR {sptRplayerUUID :: U.UUID, sptRtick :: Tick}
|
||||||
| AddPladerTickR {aptRplayerName :: T.Text, aptRtick :: Tick}
|
| AddPlayerTickR {aptRplayerName :: T.Text, aptRtick :: Tick}
|
||||||
| InitializeTickLeisteR {itlRtickLeiste :: [(Tick, [T.Text])]}
|
| InitializeTickLeisteR {itlRtickLeiste :: [(Tick, [T.Text])]}
|
||||||
| TickLeisteR
|
| TickLeisteR
|
||||||
| ChangeNameR {cnaRplayerUUID :: U.UUID, cnaRplayerName :: T.Text}
|
| ChangeNameR {cnaRplayerUUID :: U.UUID, cnaRplayerName :: T.Text}
|
||||||
| RemovePlayerR {rmpRplayerUUID :: U.UUID}
|
| RemovePlayerR {rmpRplayerUUID :: U.UUID}
|
||||||
deriving (Show)
|
deriving (Show,Eq)
|
||||||
|
|
||||||
$(deriveJSON defaultOptions {sumEncoding = defaultTaggedObject {tagFieldName = "requestType"}, fieldLabelModifier = drop 4} ''JSONRequest)
|
$(deriveJSON defaultOptions {sumEncoding = defaultTaggedObject {tagFieldName = "requestType"}, fieldLabelModifier = drop 4} ''JSONRequest)
|
||||||
|
|
||||||
data JSONEvent
|
data JSONEvent
|
||||||
= SetPlayerTickE {sptEplayerUUID :: U.UUID, sptEtick :: Tick}
|
= SetPlayerTickE {sptEplayerUUID :: U.UUID, sptEtick :: Tick}
|
||||||
|
| AddPlayerTickE {aptEplayerUUID :: U.UUUID, aptEplayerName :: T.Text}
|
||||||
| InitializeTickLeisteE {itlEtickLeiste :: [(Tick, [(U.UUID, T.Text)])]}
|
| InitializeTickLeisteE {itlEtickLeiste :: [(Tick, [(U.UUID, T.Text)])]}
|
||||||
| ChangeNameE {cnaEplayerUUID :: U.UUID, cnaEplayerName :: T.Text}
|
| ChangeNameE {cnaEplayerUUID :: U.UUID, cnaEplayerName :: T.Text}
|
||||||
| RemovePlayerE {rmpEplayerUUID :: U.UUID}
|
| RemovePlayerE {rmpEplayerUUID :: U.UUID}
|
||||||
deriving (Show)
|
deriving (Show,Eq)
|
||||||
|
|
||||||
$(deriveJSON defaultOptions {sumEncoding = defaultTaggedObject {tagFieldName = "eventType"}, fieldLabelModifier = drop 4} ''JSONEvent)
|
$(deriveJSON defaultOptions {sumEncoding = defaultTaggedObject {tagFieldName = "eventType"}, fieldLabelModifier = drop 4} ''JSONEvent)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue