From d72f6030f8f344127725db1214f152804caa0031 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 24 Jan 2026 21:46:03 +0100 Subject: Update protocol.ts --- test-client/protocol.ts | 6 +++--- 1 file 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 -- cgit v1.3