From 73c46431783c3496ef6fdf0441b047f49b7a9bb4 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 20 Jul 2024 19:52:04 +0200 Subject: implement movement_sync in test-client --- test-client/protocol.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'test-client/protocol.ts') 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. -- cgit v1.2.3-70-g09d2