aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-01-24 21:46:03 +0100
committermetamuffin <metamuffin@disroot.org>2026-01-24 21:46:03 +0100
commitd72f6030f8f344127725db1214f152804caa0031 (patch)
tree12ed9c010d9c16b45488c7189a96116b58eea718
parent45e68fb5d6b10bd1a29452ac1a35694621ebd705 (diff)
downloadhurrycurry-d72f6030f8f344127725db1214f152804caa0031.tar
hurrycurry-d72f6030f8f344127725db1214f152804caa0031.tar.bz2
hurrycurry-d72f6030f8f344127725db1214f152804caa0031.tar.zst
Update protocol.ts
-rw-r--r--test-client/protocol.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts
index 2f7ae259..9223a103 100644
--- a/test-client/protocol.ts
+++ b/test-client/protocol.ts
@@ -31,8 +31,9 @@ export interface Gamedata {
current_map: string,
item_names: string[], // Look-up table for ItemIndex
tile_names: string[], // Look-up table for TileIndex
- tile_walkable: number[], // List of TileIndex that have no collision
+ tile_collide: number[], // List of TileIndex that have collision
tile_placeable_items: { [key: string]: number[] }, // Map from TileIndex to list of ItemIndex which can be placed on that tile. Not set if not restricted
+ tile_placeable_any: number[],
tile_interactable_empty: number[], // List of TileIndex that have "crate recipes"
maps: [string, MapMetadata][], // Metadata for most available maps
bot_algos: string[],
@@ -63,8 +64,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, players: PlayerID[] } // An item 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: "flush_map" }
+ | { type: "update_map", changes: [Vec2, number[]][] } // List of position-tiles-pairs of the map that changed
| { type: "communicate", player: PlayerID, message?: Message, timeout?: MessageTimeout } // A player wants to communicate something, message is null when cleared
| { type: "effect2", location: ItemLocation, name: string } // Player sent an effect
| { type: "server_message", message: Message, error: boolean } // Text message from the server