aboutsummaryrefslogtreecommitdiff
path: root/test-client
diff options
context:
space:
mode:
Diffstat (limited to 'test-client')
-rw-r--r--test-client/protocol.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts
index 9c322a09..f88d1dec 100644
--- a/test-client/protocol.ts
+++ b/test-client/protocol.ts
@@ -1,3 +1,5 @@
+import { V2 } from "./util.ts";
+
/*
Hurry Curry! - a game about cooking
Copyright 2024 metamuffin
@@ -58,6 +60,7 @@ export type PacketC =
| { type: "update_map", tile: Vec2, kind: TileIndex | null, neighbors: [TileIndex | null] } // A map tile was changed
| { type: "communicate", player: PlayerID, message?: Message, timeout?: MessageTimeout } // A player wants to communicate something, message is null when cleared
| { type: "server_message", text: string } // Text message from the server
+ | { type: "server_hint", message?: Message, position?: V2 } // Hint message from server with optional position. Message is unset to clear previous message
| { type: "score" } & Score // Supplies information for score OSD
| { type: "menu" } & Menu // Open a menu on the client-side
| { type: "environment", effects: string[] }