-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDebugLogger.cs
More file actions
55 lines (51 loc) · 1.33 KB
/
DebugLogger.cs
File metadata and controls
55 lines (51 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using MelonLoader;
namespace GladiatorManagerAccess
{
/// <summary>
/// Utility class for logging game state and input events.
/// Only outputs when Main.DebugMode is true.
/// </summary>
public static class DebugLogger
{
/// <summary>
/// Logs a screenreader announcement.
/// </summary>
public static void LogScreenReader(string text)
{
if (Main.DebugMode)
{
MelonLogger.Msg($"[Speech] {text}");
}
}
/// <summary>
/// Logs a user input event.
/// </summary>
public static void LogInput(string key, string action)
{
if (Main.DebugMode)
{
MelonLogger.Msg($"[Input] {key} -> {action}");
}
}
/// <summary>
/// Logs a game state change.
/// </summary>
public static void LogState(string state)
{
if (Main.DebugMode)
{
MelonLogger.Msg($"[State] {state}");
}
}
/// <summary>
/// Logs a UI navigation event.
/// </summary>
public static void LogNavigation(string element)
{
if (Main.DebugMode)
{
MelonLogger.Msg($"[Nav] {element}");
}
}
}
}