diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-10-20 20:58:14 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-10-21 00:18:11 +0200 |
| commit | eaed442578c3b1765ec48c84489a122096b6a08f (patch) | |
| tree | bd5eeb82ea6f49691a4c5bad91a1b1614f0948a8 /test-client/protocol.ts | |
| parent | a3b0879a98bf5a0881b426913d7dd4cb9010e327 (diff) | |
| download | hurrycurry-eaed442578c3b1765ec48c84489a122096b6a08f.tar hurrycurry-eaed442578c3b1765ec48c84489a122096b6a08f.tar.bz2 hurrycurry-eaed442578c3b1765ec48c84489a122096b6a08f.tar.zst | |
Send paths as debug events
Diffstat (limited to 'test-client/protocol.ts')
| -rw-r--r-- | test-client/protocol.ts | 10 |
1 files changed, 10 insertions, 0 deletions
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 |