diff options
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 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) |