From c55d90768a9336436238dd93ae1706e23e281e84 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 19 Jun 2024 13:01:18 +0200 Subject: send neighbours on map updatre --- test-client/protocol.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-client/protocol.ts') diff --git a/test-client/protocol.ts b/test-client/protocol.ts index 31f61d19..aa3aa063 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -25,4 +25,4 @@ export type PacketC = | { type: "produce_item", tile: Vec2, item: ItemIndex } // A tile generated a new item | { type: "consume_item", tile: Vec2 } // A tile removed an item | { type: "set_active", tile: Vec2, progress?: number } // A tile is doing something. progress goes from 0 to 1, then null when finished - | { type: "update_map", pos: Vec2, tile: TileIndex } // A map tile was changed + | { type: "update_map", pos: Vec2, tile: TileIndex, neighbours: [TileIndex | null] } // A map tile was changed -- cgit v1.2.3-70-g09d2