quantum-space-buddies/QSB/Utility/DebugSettings.cs

59 lines
1.4 KiB
C#
Raw Normal View History

2021-11-25 22:44:15 +00:00
using Newtonsoft.Json;
2022-03-03 03:46:33 +00:00
namespace QSB.Utility;
[JsonObject(MemberSerialization.OptIn)]
public class DebugSettings
2021-11-25 22:44:15 +00:00
{
2022-03-03 03:46:33 +00:00
[JsonProperty("dumpWorldObjects")]
public bool DumpWorldObjects;
2022-01-21 22:38:41 +00:00
[JsonProperty("instanceIdInLogs")]
public bool InstanceIdInLogs;
2022-03-03 03:46:33 +00:00
[JsonProperty("hookDebugLogs")]
public bool HookDebugLogs;
2022-02-10 13:35:23 +00:00
[JsonProperty("avoidTimeSync")]
public bool AvoidTimeSync;
2022-06-07 06:19:43 +00:00
[JsonProperty("autoStart")]
public bool AutoStart;
2022-08-26 11:52:26 +00:00
[JsonProperty("kickEveryone")]
public bool KickEveryone;
2022-12-10 11:33:14 +00:00
[JsonProperty("disableLoopDeath")]
public bool DisableLoopDeath;
2023-08-08 10:45:10 +00:00
[JsonProperty("latencySimulation")]
public int LatencySimulation;
2022-03-03 03:46:33 +00:00
[JsonProperty("debugMode")]
public bool DebugMode;
2021-11-25 22:44:15 +00:00
2022-03-03 03:46:33 +00:00
[JsonProperty("drawGui")]
private bool _drawGui;
public bool DrawGui => DebugMode && _drawGui;
2022-01-20 22:33:03 +00:00
2022-03-03 03:46:33 +00:00
[JsonProperty("drawLines")]
private bool _drawLines;
public bool DrawLines => DebugMode && _drawLines;
2021-11-25 22:44:15 +00:00
2022-03-03 03:46:33 +00:00
[JsonProperty("drawLabels")]
private bool _drawLabels;
public bool DrawLabels => DebugMode && _drawLabels;
2021-11-25 22:44:15 +00:00
2022-03-03 03:46:33 +00:00
[JsonProperty("drawQuantumVisibilityObjects")]
private bool _drawQuantumVisibilityObjects;
public bool DrawQuantumVisibilityObjects => DebugMode && _drawQuantumVisibilityObjects;
2021-11-25 22:44:15 +00:00
2022-05-28 17:23:45 +00:00
[JsonProperty("drawGhostAI")]
private bool _drawGhostAI;
public bool DrawGhostAI => DebugMode && _drawGhostAI;
2022-03-03 03:46:33 +00:00
[JsonProperty("greySkybox")]
private bool _greySkybox;
public bool GreySkybox => DebugMode && _greySkybox;
}