Add Game type.
This commit is contained in:
parent
e32fa47836
commit
1fc2cf5405
1 changed files with 8 additions and 1 deletions
|
|
@ -4,3 +4,10 @@
|
||||||
| name | String | The player's name.
|
| name | String | The player's name.
|
||||||
| role | String | The player's role. This will be one of `"guesser"` or `"writer"`.
|
| role | String | The player's role. This will be one of `"guesser"` or `"writer"`.
|
||||||
| team | Integer | The player's team. This will be one of `1` or `2`
|
| team | Integer | The player's team. This will be one of `1` or `2`
|
||||||
|
|
||||||
|
## Game:
|
||||||
|
| Property | Type | Description
|
||||||
|
| -------- | ---- | -----------
|
||||||
|
| game_code | String | The game's unique identifier used for joining the game.
|
||||||
|
| players | Player[] | The players that are currently in the game.
|
||||||
|
| state | String | What state the game is currently in. This can be one of `"lobby"`, or `"playing"`
|
||||||
Loading…
Add table
Add a link
Reference in a new issue