summaryrefslogtreecommitdiff
path: root/test-client
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-26 15:43:47 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-26 15:43:47 +0200
commitfd2d5455339a61d8b38bcb47fa40e094ef61856c (patch)
tree1f5ed7f98ee9d99b55fbca646755f10a393d7fc9 /test-client
parentfe0bda76240d4794afde9d3dd796213d32a2b22a (diff)
downloadhurrycurry-fd2d5455339a61d8b38bcb47fa40e094ef61856c.tar
hurrycurry-fd2d5455339a61d8b38bcb47fa40e094ef61856c.tar.bz2
hurrycurry-fd2d5455339a61d8b38bcb47fa40e094ef61856c.tar.zst
make demand state part of the game state
Diffstat (limited to 'test-client')
-rw-r--r--test-client/protocol.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts
index 9a78f263..41ab518d 100644
--- a/test-client/protocol.ts
+++ b/test-client/protocol.ts
@@ -48,6 +48,7 @@ export type PacketC =
| { type: "set_active", tile: Vec2, progress?: number, warn: boolean } // A tile is doing something. progress goes from 0 to 1, then null when finished
| { type: "update_map", tile: Vec2, kind: TileIndex | null, neighbors: [TileIndex | null] } // A map tile was changed
| { type: "communicate", player: PlayerID, message?: Message } // A player wants to communicate something, message is null when cleared
+ | { type: "score", demands_failed: number, demands_completed: number, } // Supplies information for score OSD
| { type: "error", message?: Message } // Your client did something wrong.
export type Message =