From 238b99b063280a012476c25c98cdf2caa7e6f828 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Wed, 16 Dec 2020 16:16:51 -0700 Subject: [PATCH] Add docs for UpdateAnswer event --- server/events.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/server/events.md b/server/events.md index 7ff3cbf..aa17758 100644 --- a/server/events.md +++ b/server/events.md @@ -81,7 +81,28 @@ The client cannot send this event and only receives it.

--- -# ``: +# `UpdateAnswer`: + +## Description: +This event is sent to and from the server when a spirit is typing into one of the text boxes. + +## Request Payload: +| Property | Type | Description +| -------- | ---- | ----------- +| team | Integer | The team indicator number. This can be either `1`, or `2`, any other value will cause this event to return an error. +| answer | Integer | The answer that is being updated. This can be any number between `1` and `8` (inclusive), any other value will cause this event return an error. +| value | String | The new text for the input box. + +## Response Payload: (`UpdateAnswer`) +| Property | Type | Description +| -------- | ---- | ----------- +| team | Integer | The team indicator number. This can be either `1`, or `2`. +| answer | Integer | The answer that is being updated. This can be any number between `1` and `8` (inclusive). +| value | String | The new text for the input box. + + +

+--- ## Description: