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
14
server/docs/events/JoinTeam.md
Normal file
14
server/docs/events/JoinTeam.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# `JoinTeam`:
|
||||
|
||||
## Description:
|
||||
This event is triggered by the client when the user attempts to join a team from the lobby.
|
||||
|
||||
## Request Payload:
|
||||
| Property | Type | Description
|
||||
| -------- | ---- | -----------
|
||||
| team | int | The team to join. Accepted values are: `1`, and `2`, any other value will throw an error.
|
||||
| role | String | The role the player is assuming. This can be `"writer"` or `"guesser"`, any other value will throw an error.
|
||||
|
||||
## Response Payload: (`JoinTeam`)
|
||||
| Property | Type | Description
|
||||
| -------- | ---- | -----------
|
||||
Loading…
Add table
Add a link
Reference in a new issue