Table of Contents

Class ConfigVariable<TConfig, TValue>

Namespace
Ceres.Configs
Assembly
Ceres.dll

Generic typed console variable

public abstract class ConfigVariable<TConfig, TValue> : ConfigVariable where TConfig : Config<TConfig>, new()

Type Parameters

TConfig

Config type

TValue

Value type

Inheritance
ConfigVariable<TConfig, TValue>
Derived
Inherited Members

Constructors

ConfigVariable(string, MemberAccessor)

protected ConfigVariable(string name, MemberAccessor memberAccessor)

Parameters

name string
memberAccessor MemberAccessor

Methods

GetValue()

Get the current value of the variable

public override object GetValue()

Returns

object

Current value

SetValue(object)

Set the value of the variable

public override void SetValue(object value)

Parameters

value object

New value