From eaed442578c3b1765ec48c84489a122096b6a08f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 20 Oct 2025 20:58:14 +0200 Subject: Send paths as debug events --- test-client/protocol.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test-client/protocol.ts') diff --git a/test-client/protocol.ts b/test-client/protocol.ts index b43646a9..d0789376 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -74,6 +74,7 @@ export type PacketC = | { type: "tutorial_ended", item: ItemIndex, player: PlayerID, success: boolean } | { type: "set_ingame", state: boolean, lobby: boolean } // Set to false when entering the game or switching maps | { type: "pause", state: boolean } // Set game paused so clients dont increment timers + | { type: "debug" } & DebugEvent // Set game paused so clients dont increment timers export interface Character { color: number, @@ -153,3 +154,12 @@ export type NodeStyle = | "process_active" | "process_passive" | "process_instant" + +export interface DebugEvent { + key: string, + color: [number, number, number] + display: DebugEventDisplay +} +export type DebugEventDisplay = + { ty: "path", points: Vec2[] } + | { ty: "label", pos: Vec2, text: string } \ No newline at end of file -- cgit v1.3