From 31507963a05dffb3327b62dd54629420061d6c4d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 25 Dec 2024 21:37:01 +0100 Subject: draft map editor --- test-client/protocol.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test-client/protocol.ts') 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" -- cgit v1.2.3-70-g09d2