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

52 lines
1.4 KiB
C#
Raw Normal View History

2021-11-25 22:44:15 +00:00
using Newtonsoft.Json;
namespace QSB.Utility
{
public class DebugSettings
{
2022-01-21 22:38:41 +00:00
[JsonProperty("useKcpTransport")]
public bool UseKcpTransport { get; set; }
[JsonProperty("overrideAppId")]
2022-01-28 01:27:17 +00:00
public int OverrideAppId { get; set; } = -1;
2022-01-21 22:38:41 +00:00
[JsonProperty("dumpWorldObjects")]
public bool DumpWorldObjects { get; set; }
2022-01-21 22:38:41 +00:00
2021-11-25 22:44:15 +00:00
[JsonProperty("debugMode")]
public bool DebugMode { get; set; }
2021-11-25 22:44:15 +00:00
2022-01-20 22:33:03 +00:00
[JsonProperty("drawGui")]
private bool _drawGui;
2022-02-01 22:10:30 +00:00
public bool DrawGui => DebugMode && _drawGui;
2022-01-20 22:33:03 +00:00
2021-11-25 22:44:15 +00:00
[JsonProperty("drawLines")]
2022-01-20 22:33:03 +00:00
private bool _drawLines;
2022-02-01 22:10:30 +00:00
public bool DrawLines => DebugMode && _drawLines;
2021-11-25 22:44:15 +00:00
[JsonProperty("showQuantumVisibilityObjects")]
2022-01-20 22:33:03 +00:00
private bool _showQuantumVisibilityObjects;
2022-02-01 22:10:30 +00:00
public bool ShowQuantumVisibilityObjects => DebugMode && _showQuantumVisibilityObjects;
2021-11-25 22:44:15 +00:00
2021-12-28 18:06:34 +00:00
[JsonProperty("showDebugLabels")]
2022-01-20 22:33:03 +00:00
private bool _showDebugLabels;
2022-02-01 22:10:30 +00:00
public bool ShowDebugLabels => DebugMode && _showDebugLabels;
2021-11-25 22:44:15 +00:00
[JsonProperty("avoidTimeSync")]
2022-01-20 22:33:03 +00:00
private bool _avoidTimeSync;
2022-02-01 22:10:30 +00:00
public bool AvoidTimeSync => DebugMode && _avoidTimeSync;
2021-11-25 22:44:15 +00:00
[JsonProperty("skipTitleScreen")]
2022-01-20 22:33:03 +00:00
private bool _skipTitleScreen;
2022-02-01 22:10:30 +00:00
public bool SkipTitleScreen => DebugMode && _skipTitleScreen;
2021-12-30 13:55:41 +00:00
[JsonProperty("greySkybox")]
2022-01-20 22:33:03 +00:00
private bool _greySkybox;
2022-02-01 22:10:30 +00:00
public bool GreySkybox => DebugMode && _greySkybox;
2022-01-20 22:12:06 +00:00
[JsonProperty("playerIdInLogs")]
2022-01-20 22:33:03 +00:00
private bool _playerIdInLogs;
2022-02-01 22:10:30 +00:00
public bool PlayerIdInLogs => DebugMode && _playerIdInLogs;
2021-11-25 22:44:15 +00:00
}
}