summaryrefslogtreecommitdiff
path: root/test-client/protocol.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-19 23:18:14 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-19 23:21:31 +0200
commit01e5b30e84e2fe1203b222175d18420411f111e2 (patch)
tree76205cb2b1e2a814ad1732dc2264a57daa7be8bb /test-client/protocol.ts
parentcaa0e7cc27bfab46a6df20622f40b7f1eef7c971 (diff)
downloadhurrycurry-01e5b30e84e2fe1203b222175d18420411f111e2.tar
hurrycurry-01e5b30e84e2fe1203b222175d18420411f111e2.tar.bz2
hurrycurry-01e5b30e84e2fe1203b222175d18420411f111e2.tar.zst
send addressed player in hint packet
Diffstat (limited to 'test-client/protocol.ts')
-rw-r--r--test-client/protocol.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts
index 6076d275..c8c59ed2 100644
--- a/test-client/protocol.ts
+++ b/test-client/protocol.ts
@@ -60,7 +60,7 @@ export type PacketC =
| { 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
- | { type: "server_hint", message?: Message, position?: Vec2 } // Hint message from server with optional position. Message is unset to clear previous message
+ | { type: "server_hint", message?: Message, position?: Vec2, player: PlayerID } // 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[] }