Start removing deprecated data from protocol messages
This commit is contained in:
parent
43b0200304
commit
816ecbc331
1 changed files with 1 additions and 2 deletions
|
@ -69,7 +69,7 @@ instance ToJSON Hanafuda.Card where
|
|||
toEncoding = genericToEncoding defaultOptions
|
||||
|
||||
data FromClient =
|
||||
Answer {accept :: Bool}
|
||||
Answer {accept :: Bool, to :: PlayerID}
|
||||
| Invitation {to :: PlayerID}
|
||||
| LogIn {name :: Text}
|
||||
| LogOut
|
||||
|
@ -205,7 +205,6 @@ instance ToJSON PublicGame where
|
|||
data T =
|
||||
Relay {from :: PlayerID, message :: FromClient}
|
||||
| Welcome {room :: Room, key :: PlayerID}
|
||||
| Update {alone :: [PlayerID], paired :: [PlayerID]}
|
||||
| Game {state :: PublicGame, logs :: [KoiKoi.Action]}
|
||||
| Pong
|
||||
| Error {error :: String}
|
||||
|
|
Loading…
Reference in a new issue