Table of Contents

Class ConfigVariableRegistry

Namespace
Ceres.Configs
Assembly
Ceres.dll
public class ConfigVariableRegistry
Inheritance
ConfigVariableRegistry
Inherited Members

Methods

Get()

public static ConfigVariableRegistry Get()

Returns

ConfigVariableRegistry

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

name string

Variable name

Returns

ConfigVariable

Console variable if found, null otherwise

HasVariable(string)

Check if a variable exists

public bool HasVariable(string name)

Parameters

name string

Variable 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

configType Type

Config 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

name string

Variable name

variable ConfigVariable

The found variable

Returns

bool

True if variable exists, false otherwise