aboutsummaryrefslogtreecommitdiff
path: root/test-client/protocol.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test-client/protocol.ts')
-rw-r--r--test-client/protocol.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts
index 25d33cb5..787dfc15 100644
--- a/test-client/protocol.ts
+++ b/test-client/protocol.ts
@@ -19,6 +19,7 @@ export type Vec2 = [number, number] // x, y
export type PlayerID = number // opaque number to identify players.
export type ItemIndex = number // index used primarily for item_names in Gamedata
export type TileIndex = number // index used primarily for tile_names in Gamedata
+export type Hand = number
export interface MapMetadata {
name: string,
@@ -97,7 +98,7 @@ export type Message =
| { translation: { id: string, params: Message[] } }
export type ItemLocation =
- { player: PlayerID }
+ { player: [PlayerID, Hand] }
| { tile: Vec2 }
export type PlayerClass = "chef" | "bot" | "customer"