0
0
Fork 0

Change to using the UpdateHand event rather than the mess of events that it was before.

This commit is contained in:
Oliver-Akins 2020-12-19 15:54:01 -07:00
parent 1879ef2d69
commit 20a9c39bb3

View file

@ -125,22 +125,19 @@ Sends a card to the server, the server either then either forwards the card to t
<br><br> <br><br>
--- ---
# `RemoveCard`: # `UpdateHand`:
## Description: ## Description:
This event is sent from the server when a guesser sends a card to the spirit, it's purpose is to keep the other medium's hands in sync. Tells the client to update their hand, using one of the provided modes.
## Request Payload: ## Request Payload:
This event is only sent by the server. This event is never sent to the server
## Response Payload: (`RemoveCard`) ## Response Payload:
| Property | Type | Description | Property | Type | Description
| -------- | ---- | ----------- | -------- | ---- | -----------
| card | String | The card to remove the player's hand. | questions | String[] | The cards that the operation for the hand will use.
| team | Integer | The team to remove the card from. This will be either `1`, or `2`. | mode | String | This is one of `"append"` or `"replace"`
<br><br>
---
<br><br> <br><br>
--- ---