diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-20 19:52:04 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-20 19:52:04 +0200 |
commit | 73c46431783c3496ef6fdf0441b047f49b7a9bb4 (patch) | |
tree | 092a4e74b05cd5464c0bb5ad9a5340868055dbc0 /test-client/protocol.ts | |
parent | febbc005cfac682257af0b74be5b307d4f23f91c (diff) | |
download | hurrycurry-73c46431783c3496ef6fdf0441b047f49b7a9bb4.tar hurrycurry-73c46431783c3496ef6fdf0441b047f49b7a9bb4.tar.bz2 hurrycurry-73c46431783c3496ef6fdf0441b047f49b7a9bb4.tar.zst |
implement movement_sync in test-client
Diffstat (limited to 'test-client/protocol.ts')
-rw-r--r-- | test-client/protocol.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts index 940c8cdc..376ebd58 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -58,6 +58,7 @@ export type PacketC = | { type: "server_message", text: string } // Text message from the server | { type: "score" } & Score // Supplies information for score OSD | { type: "menu" } & Menu // Open a menu on the client-side + | { type: "movement_sync" } // Your movement is difference on the server, you should update your position from a `position` packet | { type: "set_ingame", state: boolean, lobby: boolean } // Set to false when entering the game or switching maps | { type: "error", message: string } // Your client did something wrong. |