aboutsummaryrefslogtreecommitdiff
path: root/test-client
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-06-24 13:29:01 +0200
committermetamuffin <metamuffin@disroot.org>2025-06-24 13:29:01 +0200
commite01f7e357ac91b48bb5a4e9f6b741375bc415f84 (patch)
tree5cbbf561f84a44f35ccde675224721bf0a3ae11a /test-client
parent66cdba9c1220e59905232c96eb3fb5ffb6bcda17 (diff)
downloadhurrycurry-e01f7e357ac91b48bb5a4e9f6b741375bc415f84.tar
hurrycurry-e01f7e357ac91b48bb5a4e9f6b741375bc415f84.tar.bz2
hurrycurry-e01f7e357ac91b48bb5a4e9f6b741375bc415f84.tar.zst
fix protocol neighbors array spec
Diffstat (limited to 'test-client')
-rw-r--r--test-client/protocol.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts
index 8e9ca75e..5e226c98 100644
--- a/test-client/protocol.ts
+++ b/test-client/protocol.ts
@@ -59,7 +59,7 @@ export type PacketC =
| { type: "set_item", location: ItemLocation, item?: ItemIndex } // the item contained in a tile or player changed
| { type: "set_progress", item: ItemLocation, position: number, speed: number, warn: boolean, player?: PlayerID } // A tile is doing something. position goes from 0 to 1, speed unit is in 1 per second
| { type: "clear_progress", item: ItemLocation }
- | { type: "update_map", tile: Vec2, kind: TileIndex | null, neighbors: [TileIndex | null] } // A map tile was changed
+ | { type: "update_map", tile: Vec2, kind: TileIndex | null, neighbors: (TileIndex | null)[] } // A map tile was changed
| { type: "flush_map" }
| { type: "communicate", player: PlayerID, message?: Message, timeout?: MessageTimeout } // A player wants to communicate something, message is null when cleared
| { type: "effect", player: PlayerID, name: string } // Player sent an effect