diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-14 21:00:54 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-14 21:00:54 +0200 |
commit | f6cc57f29fc65a33219b1266b3508dc40536f3c2 (patch) | |
tree | 3a5ee5897f778fd1e0547a3026060e579a4c7c56 /test-client | |
parent | 721b9ecb282f84839eb096de4d269176f8ab389f (diff) | |
download | hurrycurry-f6cc57f29fc65a33219b1266b3508dc40536f3c2.tar hurrycurry-f6cc57f29fc65a33219b1266b3508dc40536f3c2.tar.bz2 hurrycurry-f6cc57f29fc65a33219b1266b3508dc40536f3c2.tar.zst |
add binary protocol support
Diffstat (limited to 'test-client')
-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 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) |