Table of Contents

Class ConfigVariable

Namespace
Ceres.Configs
Assembly
Ceres.dll

Base class for config variables that can be modified through console

public abstract class ConfigVariable
Inheritance
ConfigVariable
Derived
Inherited Members

Constructors

ConfigVariable(string, Type, MemberAccessor)

protected ConfigVariable(string name, Type configType, MemberAccessor memberAccessor)

Parameters

name string
configType Type
memberAccessor MemberAccessor

Properties

ConfigType

public Type ConfigType { get; protected set; }

Property Value

Type

MemberAccessor

protected MemberAccessor MemberAccessor { get; }

Property Value

MemberAccessor

Name

public string Name { get; }

Property Value

string

Methods

GetValue()

Get the current value of the variable

public abstract object GetValue()

Returns

object

Current value

GetValueType()

Get the type of the variable

public virtual Type GetValueType()

Returns

Type

Variable type

SetValue(object)

Set the value of the variable

public abstract void SetValue(object value)

Parameters

value object

New value