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")]
|
2022-02-03 06:00:49 +00:00
|
|
|
|
public bool UseKcpTransport;
|
2022-01-21 22:38:41 +00:00
|
|
|
|
|
|
|
|
|
[JsonProperty("overrideAppId")]
|
2022-02-03 06:00:49 +00:00
|
|
|
|
public int OverrideAppId = -1;
|
2022-01-21 22:38:41 +00:00
|
|
|
|
|
2022-01-28 02:54:05 +00:00
|
|
|
|
[JsonProperty("dumpWorldObjects")]
|
2022-02-03 06:00:49 +00:00
|
|
|
|
public bool DumpWorldObjects;
|
2022-01-21 22:38:41 +00:00
|
|
|
|
|
2021-11-25 22:44:15 +00:00
|
|
|
|
[JsonProperty("debugMode")]
|
2022-02-03 06:00:49 +00:00
|
|
|
|
public bool DebugMode;
|
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
|
|
|
|
|
2022-02-03 06:00:49 +00:00
|
|
|
|
[JsonProperty("drawLabels")]
|
|
|
|
|
private bool _drawLabels;
|
|
|
|
|
public bool DrawLabels => DebugMode && _drawLabels;
|
2021-11-25 22:44:15 +00:00
|
|
|
|
|
2022-02-03 06:00:49 +00:00
|
|
|
|
[JsonProperty("drawQuantumVisibilityObjects")]
|
|
|
|
|
private bool _drawQuantumVisibilityObjects;
|
|
|
|
|
public bool DrawQuantumVisibilityObjects => DebugMode && _drawQuantumVisibilityObjects;
|
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
|
|
|
|
}
|
|
|
|
|
}
|