aboutsummaryrefslogtreecommitdiff
path: root/test-client/protocol.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-14 21:00:54 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-14 21:00:54 +0200
commitf6cc57f29fc65a33219b1266b3508dc40536f3c2 (patch)
tree3a5ee5897f778fd1e0547a3026060e579a4c7c56 /test-client/protocol.ts
parent721b9ecb282f84839eb096de4d269176f8ab389f (diff)
downloadhurrycurry-f6cc57f29fc65a33219b1266b3508dc40536f3c2.tar
hurrycurry-f6cc57f29fc65a33219b1266b3508dc40536f3c2.tar.bz2
hurrycurry-f6cc57f29fc65a33219b1266b3508dc40536f3c2.tar.zst
add binary protocol support
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 2cd58f75..f8241854 100644
--- a/test-client/protocol.ts
+++ b/test-client/protocol.ts
@@ -44,7 +44,7 @@ export type PacketS =
| { type: "collide", player: PlayerID, force: Vec2 } // Apply force to another player as a result of a collision
export type PacketC =
- { type: "version", minor: number, major: number } // Sent once after connecting to ensure you client is compatible
+ { type: "version", minor: number, major: number, supports_bincode?: boolean } // Sent once after connecting to ensure you client is compatible
| { type: "init", id: PlayerID } // You just connected. This is your id for this session.
| { type: "data", data: Gamedata } // Game data was changed
| { type: "add_player", id: PlayerID, name: string, position: Vec2, character: number } // Somebody else joined (or was already in the game)