From 3d30756aa67033a03fd808f6cb3b4cd187e8a5fc Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 23 Feb 2024 00:14:13 -0500 Subject: [PATCH] Document it in development.md, move it up since "everything below debug mode is only active when it is blah blah" --- DEVELOPMENT.md | 2 ++ QSB/Utility/DebugSettings.cs | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 7b26bed0..b78eb876 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -76,6 +76,7 @@ The template for this file is this : "autoStart": false, "kickEveryone": false, "disableLoopDeath": false, + "timeout": 25, "debugMode": false, "drawGui": false, "drawLines": false, @@ -91,6 +92,7 @@ The template for this file is this : - autoStart - Host/connect automatically for faster testing. - kickEveryone - Kick anyone who joins a game. - disableLoopDeath - Make it so the loop doesn't end when everyone is dead. +- timeout - How many seconds for your connection to timeout, in seconds. - debugMode - Enables debug mode. If this is set to `false`, none of the following settings do anything. - drawGui - Draws a GUI at the top of the screen that gives information on many things. - drawLines - Draws gizmo-esque lines around things. Indicates reference sectors/transforms, triggers, etc. LAGGY. diff --git a/QSB/Utility/DebugSettings.cs b/QSB/Utility/DebugSettings.cs index 725921fa..e1c17404 100644 --- a/QSB/Utility/DebugSettings.cs +++ b/QSB/Utility/DebugSettings.cs @@ -32,6 +32,12 @@ public class DebugSettings [JsonProperty("randomizeSkins")] public bool RandomizeSkins; + /// + /// Timeout in seconds + /// + [JsonProperty("timeout")] + public int Timeout = 25; + [JsonProperty("debugMode")] public bool DebugMode; @@ -54,10 +60,4 @@ public class DebugSettings [JsonProperty("greySkybox")] private bool _greySkybox; public bool GreySkybox => DebugMode && _greySkybox; - - /// - /// Timeout in seconds - /// - [JsonProperty("timeout")] - public int Timeout = 25; }