summaryrefslogtreecommitdiff
path: root/test-client/protocol.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-02-19 18:13:41 +0100
committermetamuffin <metamuffin@disroot.org>2025-02-19 18:13:41 +0100
commit0bdd9ed7b86fc39f154d762644de8483df0189bc (patch)
tree3ca0dee35235cafa2e7e9ed00bfee1ecdb23f696 /test-client/protocol.ts
parentfdffbdca756ab13e057b779fc53ccf31d5b9858a (diff)
downloadhurrycurry-0bdd9ed7b86fc39f154d762644de8483df0189bc.tar
hurrycurry-0bdd9ed7b86fc39f154d762644de8483df0189bc.tar.bz2
hurrycurry-0bdd9ed7b86fc39f154d762644de8483df0189bc.tar.zst
fix testclient for single-handed games
Diffstat (limited to 'test-client/protocol.ts')
-rw-r--r--test-client/protocol.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts
index 787dfc15..a41c19d7 100644
--- a/test-client/protocol.ts
+++ b/test-client/protocol.ts
@@ -40,7 +40,7 @@ export type PacketS =
{ type: "join", name: string, character: number, class: PlayerClass } // Spawns a new character. The server replies with "joined". Dont send it to spectate.
| { type: "leave", player: PlayerID } // Despawns a character
| { type: "movement", player: PlayerID, pos: Vec2, dir: Vec2, boost: boolean }
- | { type: "interact", player: PlayerID, pos?: Vec2 } // Interact with some tile. pos is a position when pressing and null when releasing interact button
+ | { type: "interact", player: PlayerID, pos?: Vec2, hand: number } // Interact with some tile. pos is a position when pressing and null when releasing interact button
| { type: "communicate", player: PlayerID, message?: Message, timeout?: number, pin?: boolean } // Sends a message
| { type: "effect", player: PlayerID, name: string } // Sends an effect
| { type: "replay_tick", dt: number } // Steps forward in replay.