diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-26 18:03:00 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-26 18:03:00 +0200 |
commit | 2a96dbb14fe268c90025d1d0af5e66dc9b00f214 (patch) | |
tree | cf4e5bc8bcda51a60bc46f1042f5b9464284b6e6 /test-client | |
parent | 9f5c9f8019c56d6904dfff1d18eaed247db5eba6 (diff) | |
download | hurrycurry-2a96dbb14fe268c90025d1d0af5e66dc9b00f214.tar hurrycurry-2a96dbb14fe268c90025d1d0af5e66dc9b00f214.tar.bz2 hurrycurry-2a96dbb14fe268c90025d1d0af5e66dc9b00f214.tar.zst |
add map flush packet for #157
Diffstat (limited to 'test-client')
-rw-r--r-- | test-client/main.ts | 2 | ||||
-rw-r--r-- | test-client/protocol.ts | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/test-client/main.ts b/test-client/main.ts index c56f9db4..b2a5ef46 100644 --- a/test-client/main.ts +++ b/test-client/main.ts @@ -293,6 +293,8 @@ function packet(p: PacketC) { break case "effect": break; + case "flush_map": + break; case "menu": switch (p.menu) { case "book": open("https://s.metamuffin.org/static/hurrycurry/book.pdf"); break 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 |