Class BoolSetting
- Namespace
- ContentSettings.API.Settings
- Assembly
- RedstoneWizard08.ContentLibrary.dll
A setting that contains a boolean value.
public abstract class BoolSetting : Setting, IDisposable
- Inheritance
-
BoolSetting
- Implements
- Derived
- Inherited Members
Properties
Value
Gets a value indicating whether the setting is enabled.
public bool Value { get; protected set; }
Property Value
Methods
Expose(bool)
Exposes the value of the setting as a string, for display purposes.
public virtual string Expose(bool value)
Parameters
value
boolThe value to expose.
Returns
- string
The exposed value.
GetDebugUI(ISettingHandler)
Gets the setting UI for the setting.
public override SettingUI GetDebugUI(ISettingHandler settingHandler)
Parameters
settingHandler
ISettingHandlerThe setting handler to get the setting UI for.
Returns
- SettingUI
The setting UI for the setting.
GetDefaultValue()
Gets the default value for the setting.
public abstract bool GetDefaultValue()
Returns
- bool
The default value for the setting.
GetSettingUICell()
Gets the setting UI for the setting.
public override GameObject GetSettingUICell()
Returns
- GameObject
The setting UI for the setting.
Load(ISettingsSaveLoad)
Loads the setting using the provided loader.
public override void Load(ISettingsSaveLoad loader)
Parameters
loader
ISettingsSaveLoadThe loader to load the setting with.
Save(ISettingsSaveLoad)
Save the setting using the provided loader.
public override void Save(ISettingsSaveLoad saver)
Parameters
saver
ISettingsSaveLoadThe loader to save the setting with.
SetValue(bool, ISettingHandler)
Sets the value of the setting and saves it.
public void SetValue(bool newValue, ISettingHandler settingHandler)
Parameters
newValue
boolThe new value of the setting.
settingHandler
ISettingHandlerThe setting handler to save the setting with.