aboutsummaryrefslogtreecommitdiff
path: root/test-client/protocol.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-18 13:31:59 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-23 19:21:22 +0200
commit7954d6dfc42e14ecdaebbe14191c22b071819444 (patch)
tree4e4621a00cb4a377624d5aa8a2b1dac423564ed5 /test-client/protocol.ts
parent3d870a714348defc40cd519c00b43c87b1be6480 (diff)
downloadhurrycurry-7954d6dfc42e14ecdaebbe14191c22b071819444.tar
hurrycurry-7954d6dfc42e14ecdaebbe14191c22b071819444.tar.bz2
hurrycurry-7954d6dfc42e14ecdaebbe14191c22b071819444.tar.zst
rename joined to init
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 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)