diff options
Diffstat (limited to 'test-client/protocol.ts')
-rw-r--r-- | test-client/protocol.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts index 6d7bf464..0d2183dd 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -40,7 +40,8 @@ export type PacketS = | { type: "leave", player: PlayerID } // Despawns a character | { type: "movement", player: PlayerID, pos: Vec2, dir: Vec2, boost: boolean } | { type: "interact", player: PlayerID, pos?: Vec2 } // Interact with some tile. pos is a position when pressing and null when releasing interact button - | { type: "communicate", player: PlayerID, message?: Message, timeout?: number } // Send a message + | { type: "communicate", player: PlayerID, message?: Message, timeout?: number } // Sends a message + | { type: "effect", player: PlayerID, name: string } // Sends an effect | { type: "replay_tick", dt: number } // Steps forward in replay. export type PacketC = @@ -57,6 +58,7 @@ export type PacketC = | { type: "clear_progress", item: ItemLocation } | { 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: "effect", player: PlayerID, name: string } // Player sent an effect | { type: "server_message", text: string } // 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: "score" } & Score // Supplies information for score OSD @@ -90,7 +92,6 @@ export type Message = { item: number } | { tile: number } | { text: string } - | { effect: string } | { translation: { id: string, params: Message[] } } export type ItemLocation = |