aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-01-24 21:46:03 +0100
committertpart <tpart120@proton.me>2026-02-26 20:49:13 +0100
commit72fbf176a69d329f420e33aedfdce54d4559d9b3 (patch)
tree53a0cafb063593b69ddc468c3b9fb38f434b2e5d
parent28e1cfa50847de1a7347531054bd62c88f304678 (diff)
downloadhurrycurry-72fbf176a69d329f420e33aedfdce54d4559d9b3.tar
hurrycurry-72fbf176a69d329f420e33aedfdce54d4559d9b3.tar.bz2
hurrycurry-72fbf176a69d329f420e33aedfdce54d4559d9b3.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