summaryrefslogtreecommitdiff
path: root/test-client/protocol.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-06-02 18:04:20 +0200
committermetamuffin <metamuffin@disroot.org>2025-06-02 18:04:20 +0200
commit8059e28bbc363dd6304cc67db69dbc573f6e0280 (patch)
tree762eecaac7c6807098e63ddb71f6b54072d0b2b3 /test-client/protocol.ts
parentb838981cfd164dad36f7e919238211bb87f96578 (diff)
downloadhurrycurry-8059e28bbc363dd6304cc67db69dbc573f6e0280.tar
hurrycurry-8059e28bbc363dd6304cc67db69dbc573f6e0280.tar.bz2
hurrycurry-8059e28bbc363dd6304cc67db69dbc573f6e0280.tar.zst
send clientbound pause notification
Diffstat (limited to 'test-client/protocol.ts')
-rw-r--r--test-client/protocol.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts
index d1cd9c07..6a1d2909 100644
--- a/test-client/protocol.ts
+++ b/test-client/protocol.ts
@@ -69,6 +69,7 @@ export type PacketC =
| { type: "environment", effects: string[] }
| { type: "tutorial_ended", item: ItemIndex, player: PlayerID, success: boolean }
| { type: "set_ingame", state: boolean, lobby: boolean } // Set to false when entering the game or switching maps
+ | { type: "pause", state: boolean } // Set game paused so clients dont increment timers
export type Menu =
{ menu: "document", data: DocumentElement }