diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-12-16 01:12:16 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-12-16 01:12:16 +0100 |
| commit | c1b9bbb5e76b88e803ba833c16337d528c1dd7be (patch) | |
| tree | 93761c5f4189ece758923cab3bd2388bbcf18a8c /test-client/protocol.ts | |
| parent | e2efb15aa58477d898f92c8959242c0da3ce62bc (diff) | |
| download | hurrycurry-c1b9bbb5e76b88e803ba833c16337d528c1dd7be.tar hurrycurry-c1b9bbb5e76b88e803ba833c16337d528c1dd7be.tar.bz2 hurrycurry-c1b9bbb5e76b88e803ba833c16337d528c1dd7be.tar.zst | |
Rename effect packet for compatiblity with older clients
Diffstat (limited to 'test-client/protocol.ts')
| -rw-r--r-- | test-client/protocol.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts index a8dc2424..2f7ae259 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -66,7 +66,7 @@ export type PacketC = | { 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", location: ItemLocation, name: string } // Player sent an effect + | { type: "effect2", location: ItemLocation, 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, player: PlayerID } // Hint message from server with optional position. Message is unset to clear previous message | { type: "score" } & Score // Supplies information for score OSD |