0
0
Fork 0
Phantom-Ink-Online/server/docs/events/CreateGame.md
2020-12-19 18:01:36 -07:00

15 lines
No EOL
540 B
Markdown

# `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.