quantum-space-buddies/QSB/Utility/DebugSettings.cs
2023-09-17 22:03:13 +01:00

62 lines
1.4 KiB
C#

using Newtonsoft.Json;
namespace QSB.Utility;
[JsonObject(MemberSerialization.OptIn)]
public class DebugSettings
{
[JsonProperty("dumpWorldObjects")]
public bool DumpWorldObjects;
[JsonProperty("logQSBMessages")]
public bool LogQSBMessages;
[JsonProperty("instanceIdInLogs")]
public bool InstanceIdInLogs;
[JsonProperty("hookDebugLogs")]
public bool HookDebugLogs;
[JsonProperty("avoidTimeSync")]
public bool AvoidTimeSync;
[JsonProperty("autoStart")]
public bool AutoStart;
[JsonProperty("kickEveryone")]
public bool KickEveryone;
[JsonProperty("disableLoopDeath")]
public bool DisableLoopDeath;
[JsonProperty("latencySimulation")]
public int LatencySimulation;
[JsonProperty("debugMode")]
public bool DebugMode;
[JsonProperty("drawGui")]
private bool _drawGui;
public bool DrawGui => DebugMode && _drawGui;
[JsonProperty("drawLines")]
private bool _drawLines;
public bool DrawLines => DebugMode && _drawLines;
[JsonProperty("drawLabels")]
private bool _drawLabels;
public bool DrawLabels => DebugMode && _drawLabels;
[JsonProperty("drawQuantumVisibilityObjects")]
private bool _drawQuantumVisibilityObjects;
public bool DrawQuantumVisibilityObjects => DebugMode && _drawQuantumVisibilityObjects;
[JsonProperty("drawGhostAI")]
private bool _drawGhostAI;
public bool DrawGhostAI => DebugMode && _drawGhostAI;
[JsonProperty("greySkybox")]
private bool _greySkybox;
public bool GreySkybox => DebugMode && _greySkybox;
}