diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-10-19 19:58:03 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-10-19 19:58:03 +0200 |
| commit | 6979c0a1b6503cb4b4e96e66cba5fc10a2d89b4b (patch) | |
| tree | f8d6140efb00aef24710d935e0378c90b150ab2c | |
| parent | eb6e24d4473f6a78d09b20157c0a0f7fd992c745 (diff) | |
| download | hurrycurry-6979c0a1b6503cb4b4e96e66cba5fc10a2d89b4b.tar hurrycurry-6979c0a1b6503cb4b4e96e66cba5fc10a2d89b4b.tar.bz2 hurrycurry-6979c0a1b6503cb4b4e96e66cba5fc10a2d89b4b.tar.zst | |
forgot to rename field
| -rw-r--r-- | test-client/protocol.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts index 6d3e11cd..b43646a9 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -44,7 +44,7 @@ export type PacketS = | { type: "leave", player: PlayerID } // Despawns a character | { type: "idle", paused: boolean } // Indicates that this player is actively participating in the game right now. | { type: "movement", player: PlayerID, pos: Vec2, dir: Vec2, boost: boolean } - | { type: "interact", player: PlayerID, pos?: ItemLocation, hand: number } // Interact with some tile. pos is a position when pressing and null when releasing interact button + | { type: "interact", player: PlayerID, target?: ItemLocation, 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. |