Move event and type docs into their own files.
This commit is contained in:
parent
ce7e35cd53
commit
2ca4eef0a6
19 changed files with 213 additions and 261 deletions
15
server/docs/events/CreateGame.md
Normal file
15
server/docs/events/CreateGame.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# `CreateGame`:
|
||||
|
||||
## Description:
|
||||
Triggered when a user is creating a game.
|
||||
|
||||
## Request Payload:
|
||||
| Property | Type | Description
|
||||
| -------- | ---- | -----------
|
||||
| name | String | The name of the person starting the game
|
||||
|
||||
## Response Payload: (`GameCreated`)
|
||||
| Property | Type | Description
|
||||
| -------- | ---- | -----------
|
||||
| id | String | The user's game ID, this should be stored to permit users to re-join the game if they get disconnected.
|
||||
| game_code | String | The game's code that other players can use to connect to the game.
|
||||
Loading…
Add table
Add a link
Reference in a new issue