Config presets system. (#12824)
This commit is contained in:
committed by
GitHub
parent
326fdefe85
commit
55c61b9c35
@@ -140,7 +140,7 @@ namespace Content.Shared.CCVar
|
||||
/// Controls if the lobby is enabled. If it is not, and there are no available jobs, you may get stuck on a black screen.
|
||||
/// </summary>
|
||||
public static readonly CVarDef<bool>
|
||||
GameLobbyEnabled = CVarDef.Create("game.lobbyenabled", false, CVar.ARCHIVE);
|
||||
GameLobbyEnabled = CVarDef.Create("game.lobbyenabled", true, CVar.ARCHIVE);
|
||||
|
||||
/// <summary>
|
||||
/// Controls the duration of the lobby timer in seconds. Defaults to 2 minutes and 30 seconds.
|
||||
@@ -1339,7 +1339,6 @@ namespace Content.Shared.CCVar
|
||||
* PLAYTIME
|
||||
*/
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Time between play time autosaves, in seconds.
|
||||
/// </summary>
|
||||
@@ -1391,5 +1390,38 @@ namespace Content.Shared.CCVar
|
||||
/// </summary>
|
||||
public static readonly CVarDef<string> InfoLinksBugReport =
|
||||
CVarDef.Create("infolinks.bug_report", "", CVar.SERVER | CVar.REPLICATED);
|
||||
|
||||
/*
|
||||
* CONFIG
|
||||
*/
|
||||
|
||||
// These are server-only for now since I don't foresee a client use yet,
|
||||
// and I don't wanna have to start coming up with like .client suffixes and stuff like that.
|
||||
|
||||
/// <summary>
|
||||
/// Configuration presets to load during startup.
|
||||
/// Multiple presets can be separated by comma and are loaded in order.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Loaded presets must be located under the <c>ConfigPresets/</c> resource directory and end with the <c>.toml</c> extension.
|
||||
/// Only the file name (without extension) must be given for this variable.
|
||||
/// </remarks>
|
||||
public static readonly CVarDef<string> ConfigPresets =
|
||||
CVarDef.Create("config.presets", "", CVar.SERVERONLY);
|
||||
|
||||
/// <summary>
|
||||
/// Whether to load the preset development CVars.
|
||||
/// This disables some things like lobby to make development easier.
|
||||
/// Even when true, these are only loaded if the game is compiled with <c>DEVELOPMENT</c> set.
|
||||
/// </summary>
|
||||
public static readonly CVarDef<bool> ConfigPresetDevelopment =
|
||||
CVarDef.Create("config.preset_development", true, CVar.SERVERONLY);
|
||||
|
||||
/// <summary>
|
||||
/// Whether to load the preset debug CVars.
|
||||
/// Even when true, these are only loaded if the game is compiled with <c>DEBUG</c> set.
|
||||
/// </summary>
|
||||
public static readonly CVarDef<bool> ConfigPresetDebug =
|
||||
CVarDef.Create("config.preset_debug", true, CVar.SERVERONLY);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user