diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-10-19 19:56:26 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-10-19 19:56:26 +0200 |
| commit | eb6e24d4473f6a78d09b20157c0a0f7fd992c745 (patch) | |
| tree | 9b6e96d0c8f12c012976c043fdcfcb6bb43f64ff /test-client/protocol.ts | |
| parent | 129f4aa7f865df9de0d09afa758f65e79038cb77 (diff) | |
| download | hurrycurry-eb6e24d4473f6a78d09b20157c0a0f7fd992c745.tar hurrycurry-eb6e24d4473f6a78d09b20157c0a0f7fd992c745.tar.bz2 hurrycurry-eb6e24d4473f6a78d09b20157c0a0f7fd992c745.tar.zst | |
Update protcol.ts with new interact target
Diffstat (limited to 'test-client/protocol.ts')
| -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 e3becdec..6d3e11cd 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?: Vec2, hand: number } // Interact with some tile. pos is a position when pressing and null when releasing interact button + | { 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: "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. |