summaryrefslogtreecommitdiff
path: root/test-client/protocol.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-12-25 21:37:01 +0100
committermetamuffin <metamuffin@disroot.org>2024-12-25 21:37:01 +0100
commit31507963a05dffb3327b62dd54629420061d6c4d (patch)
tree5f245a2abc769b5eeb30d43f1ec69d033a825a60 /test-client/protocol.ts
parentcc6b50debb9d5b740adbe6f803755413c972659a (diff)
downloadhurrycurry-31507963a05dffb3327b62dd54629420061d6c4d.tar
hurrycurry-31507963a05dffb3327b62dd54629420061d6c4d.tar.bz2
hurrycurry-31507963a05dffb3327b62dd54629420061d6c4d.tar.zst
draft map editor
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"