Class SimpleGameSetting<T>
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
public abstract class SimpleGameSetting<T> : GameSetting where T : IEquatable<T>
Type Parameters
T
- Inheritance
-
objectSimpleGameSetting<T>
- Derived
- Inherited Members
- Extension Methods
Constructors
SimpleGameSetting(string, T)
protected SimpleGameSetting(string id, T defaultValue)
Parameters
idstringdefaultValueT
Properties
Default
protected T Default { get; }
Property Value
- T
IsModified
public override bool IsModified { get; }
Property Value
- bool
Value
public T Value { get; set; }
Property Value
- T
Methods
CopyFrom(GameSetting)
public override void CopyFrom(GameSetting other)
Parameters
otherGameSetting
Equals(GameSetting)
public override bool Equals(GameSetting other)
Parameters
otherGameSetting
Returns
- bool
GetValueText()
public override IText GetValueText()
Returns
ResetToDefault()
public override void ResetToDefault()
Save()
protected abstract void Save()
TrySetFromString(string)
public override bool TrySetFromString(string value)
Parameters
valuestring
Returns
- bool