diff options
| author | Caleb <caleb.mabry.15@cnu.edu> | 2022-08-30 18:08:05 -0400 |
|---|---|---|
| committer | Caleb <caleb.mabry.15@cnu.edu> | 2022-08-30 18:08:05 -0400 |
| commit | 357b27c0aae95031a5d94bdbc504d82b797b22e2 (patch) | |
| tree | 57bf23055f63df56f9a65b4ac007d97e41a334a1 /webAO/packets/handlers/handleDONE.ts | |
| parent | a453315983f6fa71b2b9f953d505cf63f6d7d8d0 (diff) | |
Several packets added
Diffstat (limited to 'webAO/packets/handlers/handleDONE.ts')
| -rw-r--r-- | webAO/packets/handlers/handleDONE.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/webAO/packets/handlers/handleDONE.ts b/webAO/packets/handlers/handleDONE.ts new file mode 100644 index 0000000..3cafd5e --- /dev/null +++ b/webAO/packets/handlers/handleDONE.ts @@ -0,0 +1,16 @@ +import queryParser from "../../utils/queryParser"; + +let { mode } = queryParser() + /** + * Handles the handshake completion packet, meaning the player + * is ready to select a character. + * + * @param {Array} args packet arguments + */ +export const handleDONE = (_args: string[]) => { + document.getElementById("client_loading")!.style.display = "none"; + if (mode === "watch") { + // Spectators don't need to pick a character + document.getElementById("client_waiting")!.style.display = "none"; + } + }
\ No newline at end of file |
