diff options
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 |