Class ConfigVariableRegistry
public class ConfigVariableRegistry
- Inheritance
-
ConfigVariableRegistry
- Inherited Members
Methods
Get()
public static ConfigVariableRegistry Get()
Returns
GetAllVariables()
Get all registered console variables
public ConfigVariable[] GetAllVariables()
Returns
- ConfigVariable[]
Dictionary of all variables
GetVariable(string)
Get console variable by name
public ConfigVariable GetVariable(string name)
Parameters
namestringVariable name
Returns
- ConfigVariable
Console variable if found, null otherwise
HasVariable(string)
Check if a variable exists
public bool HasVariable(string name)
Parameters
namestringVariable name
Returns
- bool
True if variable exists, false otherwise
LoadConfig(Type)
Load a config if it's not already loaded
public bool LoadConfig(Type configType)
Parameters
configTypeTypeConfig type to load
Returns
- bool
True if config was loaded or already loaded, false otherwise
TryGetVariable(string, out ConfigVariable)
Try to get console variable by name
public bool TryGetVariable(string name, out ConfigVariable variable)
Parameters
namestringVariable name
variableConfigVariableThe found variable
Returns
- bool
True if variable exists, false otherwise