From 20a9c39bb3453279a24a77713b0b6391f0e3cd81 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 19 Dec 2020 15:54:01 -0700 Subject: [PATCH] Change to using the UpdateHand event rather than the mess of events that it was before. --- server/events.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/server/events.md b/server/events.md index 64d80f7..c27c341 100644 --- a/server/events.md +++ b/server/events.md @@ -125,22 +125,19 @@ Sends a card to the server, the server either then either forwards the card to t

--- -# `RemoveCard`: +# `UpdateHand`: ## 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: -This event is only sent by the server. +This event is never sent to the server -## Response Payload: (`RemoveCard`) +## Response Payload: | Property | Type | Description | -------- | ---- | ----------- -| card | String | The card to remove the player's hand. -| team | Integer | The team to remove the card from. This will be either `1`, or `2`. - -

---- +| questions | String[] | The cards that the operation for the hand will use. +| mode | String | This is one of `"append"` or `"replace"`

---