Class ConfigVariable
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
namestringconfigTypeTypememberAccessorMemberAccessor
Properties
ConfigType
public Type ConfigType { get; protected set; }
Property Value
MemberAccessor
protected MemberAccessor MemberAccessor { get; }
Property Value
Name
public string Name { get; }
Property Value
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
valueobjectNew value