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
|
||||
= SetPlayerTickR {sptRplayerUUID :: U.UUID, sptRtick :: Tick}
|
||||
| AddPladerTickR {aptRplayerName :: T.Text, aptRtick :: Tick}
|
||||
| AddPlayerTickR {aptRplayerName :: T.Text, aptRtick :: Tick}
|
||||
| InitializeTickLeisteR {itlRtickLeiste :: [(Tick, [T.Text])]}
|
||||
| TickLeisteR
|
||||
| ChangeNameR {cnaRplayerUUID :: U.UUID, cnaRplayerName :: T.Text}
|
||||
| RemovePlayerR {rmpRplayerUUID :: U.UUID}
|
||||
deriving (Show)
|
||||
deriving (Show,Eq)
|
||||
|
||||
$(deriveJSON defaultOptions {sumEncoding = defaultTaggedObject {tagFieldName = "requestType"}, fieldLabelModifier = drop 4} ''JSONRequest)
|
||||
|
||||
data JSONEvent
|
||||
= SetPlayerTickE {sptEplayerUUID :: U.UUID, sptEtick :: Tick}
|
||||
| AddPlayerTickE {aptEplayerUUID :: U.UUUID, aptEplayerName :: T.Text}
|
||||
| InitializeTickLeisteE {itlEtickLeiste :: [(Tick, [(U.UUID, T.Text)])]}
|
||||
| ChangeNameE {cnaEplayerUUID :: U.UUID, cnaEplayerName :: T.Text}
|
||||
| RemovePlayerE {rmpEplayerUUID :: U.UUID}
|
||||
deriving (Show)
|
||||
deriving (Show,Eq)
|
||||
|
||||
$(deriveJSON defaultOptions {sumEncoding = defaultTaggedObject {tagFieldName = "eventType"}, fieldLabelModifier = drop 4} ''JSONEvent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue