summaryrefslogtreecommitdiff
path: root/test-client/protocol.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-20 14:42:25 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-23 19:24:14 +0200
commit96dd53c9ea8fe124a699de3b04069102a6002128 (patch)
treeba978eae3518dd8f60e061d2c40f5e4478f987da /test-client/protocol.ts
parentd888bd25908ff26712232f1b296f902d37d93d40 (diff)
downloadhurrycurry-96dd53c9ea8fe124a699de3b04069102a6002128.tar
hurrycurry-96dd53c9ea8fe124a699de3b04069102a6002128.tar.bz2
hurrycurry-96dd53c9ea8fe124a699de3b04069102a6002128.tar.zst
client-side collision
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 4516d0e5..746a83e8 100644
--- a/test-client/protocol.ts
+++ b/test-client/protocol.ts
@@ -26,7 +26,7 @@ export type PacketC =
| { type: "set_player_item", player: PlayerID, item?: ItemIndex } // A player changed their item
| { type: "set_active", tile: Vec2, progress?: number } // A tile is doing something. progress goes from 0 to 1, then null when finished
| { type: "update_map", pos: Vec2, tile: TileIndex, neighbors: [TileIndex | null] } // A map tile was changed
- | { type: "communicate", player: PlayerID, message?: Message } // A map tile was changed
+ | { type: "communicate", player: PlayerID, message?: Message } // A player wants to communicate something, message is null when cleared
export type Message =
{ item: number }