From 2a96dbb14fe268c90025d1d0af5e66dc9b00f214 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 26 Sep 2024 18:03:00 +0200 Subject: add map flush packet for #157 --- test-client/protocol.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'test-client/protocol.ts') diff --git a/test-client/protocol.ts b/test-client/protocol.ts index 2dcde685..8fa15c8d 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -57,6 +57,7 @@ export type PacketC = | { 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: "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 | { type: "server_message", message: Message, error: boolean } // Text message from the server -- cgit v1.2.3-70-g09d2