LogOut becomes a server message (clients just shut the connection now)
This commit is contained in:
parent
d32e61f927
commit
b62dc4ff28
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,6 @@ data FromClient =
|
||||||
| Tadaima {myID :: PlayerID, name :: Text}
|
| Tadaima {myID :: PlayerID, name :: Text}
|
||||||
| Answer {accept :: Bool, to :: PlayerID}
|
| Answer {accept :: Bool, to :: PlayerID}
|
||||||
| Invitation {to :: PlayerID}
|
| Invitation {to :: PlayerID}
|
||||||
| LogOut
|
|
||||||
| Play {move :: KoiKoi.Move, onGame :: PublicGame}
|
| Play {move :: KoiKoi.Move, onGame :: PublicGame}
|
||||||
| Quit
|
| Quit
|
||||||
| Ping
|
| Ping
|
||||||
|
@ -198,6 +197,7 @@ data T =
|
||||||
| Welcome {room :: Room, key :: PlayerID}
|
| Welcome {room :: Room, key :: PlayerID}
|
||||||
| Okaeri {room :: Room}
|
| Okaeri {room :: Room}
|
||||||
| LogIn {from :: PlayerID, as :: Text}
|
| LogIn {from :: PlayerID, as :: Text}
|
||||||
|
| LogOut {from :: PlayerID}
|
||||||
| Game {state :: PublicGame, logs :: [KoiKoi.Action]}
|
| Game {state :: PublicGame, logs :: [KoiKoi.Action]}
|
||||||
| Pong
|
| Pong
|
||||||
| Error {error :: String}
|
| Error {error :: String}
|
||||||
|
|
Loading…
Reference in a new issue