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-27 17:27:17 -08:00
|
|
|
|
public int OverrideAppId { get; set; } = -1;
|
2022-01-21 22:38:41 +00:00
|
|
|
|
|
2022-01-27 18:54:05 -08: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")]
|
2021-12-30 15:33:49 -08:00
|
|
|
|
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;
|
|
|
|
|
public bool DrawGui { get => _drawGui && DebugMode; set => _drawGui = value; }
|
|
|
|
|
|
2021-11-25 22:44:15 +00:00
|
|
|
|
[JsonProperty("drawLines")]
|
2022-01-20 22:33:03 +00:00
|
|
|
|
private bool _drawLines;
|
|
|
|
|
public bool DrawLines { get => _drawLines && DebugMode; set => _drawLines = value; }
|
2021-11-25 22:44:15 +00:00
|
|
|
|
|
|
|
|
|
[JsonProperty("showQuantumVisibilityObjects")]
|
2022-01-20 22:33:03 +00:00
|
|
|
|
private bool _showQuantumVisibilityObjects;
|
|
|
|
|
public bool ShowQuantumVisibilityObjects { get => _showQuantumVisibilityObjects && DebugMode; set => _showQuantumVisibilityObjects = value; }
|
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;
|
|
|
|
|
public bool ShowDebugLabels { get => _showDebugLabels && DebugMode; set => _showDebugLabels = value; }
|
2021-11-25 22:44:15 +00:00
|
|
|
|
|
|
|
|
|
[JsonProperty("avoidTimeSync")]
|
2022-01-20 22:33:03 +00:00
|
|
|
|
private bool _avoidTimeSync;
|
|
|
|
|
public bool AvoidTimeSync { get => _avoidTimeSync && DebugMode; set => _avoidTimeSync = value; }
|
2021-11-25 22:44:15 +00:00
|
|
|
|
|
|
|
|
|
[JsonProperty("skipTitleScreen")]
|
2022-01-20 22:33:03 +00:00
|
|
|
|
private bool _skipTitleScreen;
|
|
|
|
|
public bool SkipTitleScreen { get => _skipTitleScreen && DebugMode; set => _skipTitleScreen = value; }
|
2021-12-30 13:55:41 +00:00
|
|
|
|
|
|
|
|
|
[JsonProperty("greySkybox")]
|
2022-01-20 22:33:03 +00:00
|
|
|
|
private bool _greySkybox;
|
|
|
|
|
public bool GreySkybox { get => _greySkybox && DebugMode; set => _greySkybox = value; }
|
2022-01-20 22:12:06 +00:00
|
|
|
|
|
|
|
|
|
[JsonProperty("playerIdInLogs")]
|
2022-01-20 22:33:03 +00:00
|
|
|
|
private bool _playerIdInLogs;
|
|
|
|
|
public bool PlayerIdInLogs { get => _playerIdInLogs && DebugMode; set => _playerIdInLogs = value; }
|
2021-11-25 22:44:15 +00:00
|
|
|
|
}
|
|
|
|
|
}
|