Sync scores between players

This commit is contained in:
2023-03-13 16:49:44 +01:00
parent 2fb71a3969
commit 1fc4e10c39
4 changed files with 101 additions and 0 deletions

View File

@@ -51,6 +51,8 @@ pub enum ServerMessage {
PlayerTurn(usize),
/// Update the current hand of the player
SyncHand(Vec<TileRef>),
/// Update the score of the n-th player.
SyncScore(usize, u32),
/// Informs that a tile has been placed
TilePlaced(Position2dRef, TileRef),
/// Informs that a tile has been removed