From 7954d6dfc42e14ecdaebbe14191c22b071819444 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 18 Jun 2024 13:31:59 +0200 Subject: rename joined to init --- test-client/protocol.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-client/protocol.ts') diff --git a/test-client/protocol.ts b/test-client/protocol.ts index 520709fb..96657db7 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -16,7 +16,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: "joined", id: PlayerID, data: Gamedata } // You joined + { type: "init", id: PlayerID, data: Gamedata } // You joined | { type: "add_player", id: PlayerID, name: string, hand?: [ItemID, ItemIndex] } // Somebody else joined (or was already in the game) | { type: "remove_player", id: PlayerID } // Somebody left | { type: "position", player: PlayerID, pos: Vec2, rot: number } // Update the position of a players (your own position is included here) -- cgit v1.2.3-70-g09d2