![]() |
BadScript 2
|
Implements an Editable Setting. More...
Public Member Functions | |
BadEditableSetting (string name, TValue? defaultValue=default) | |
Creates a new Editable Setting. | |
BadSettings? | Get () |
Returns the settings object of the Editable Setting. | |
TValue? | GetValue () |
Returns the value of the Editable Setting. | |
void | Set (TValue? value) |
Sets the value of the Editable Setting. | |
Private Attributes | |
readonly? TValue | m_DefaultValue |
The Default Value of the Setting. | |
readonly string | m_Name |
The Name of the Setting. | |
BadSettings? | m_SettingsObj |
The Settings Object. | |
Implements an Editable Setting.
T | The Type that has the setting |
TValue | The Type of the value of the setting |
T | : | BadSettingsProvider<T> | |
T | : | new() |
Definition at line 15 of file BadEditableSetting.cs.
BadScript2.Settings.BadEditableSetting< T, TValue >.BadEditableSetting | ( | string | name, |
TValue? | defaultValue = default |
||
) |
Creates a new Editable Setting.
name | The Name of the Setting |
defaultValue | The Default Value of the Setting |
Definition at line 37 of file BadEditableSetting.cs.
BadSettings? BadScript2.Settings.BadEditableSetting< T, TValue >.Get | ( | ) |
Returns the settings object of the Editable Setting.
Definition at line 47 of file BadEditableSetting.cs.
TValue? BadScript2.Settings.BadEditableSetting< T, TValue >.GetValue | ( | ) |
Returns the value of the Editable Setting.
Definition at line 73 of file BadEditableSetting.cs.
void BadScript2.Settings.BadEditableSetting< T, TValue >.Set | ( | TValue? | value | ) |
Sets the value of the Editable Setting.
value | The value to set |
BadRuntimeException | If the Settings Object is null |
Definition at line 92 of file BadEditableSetting.cs.
|
private |
The Default Value of the Setting.
Definition at line 20 of file BadEditableSetting.cs.
|
private |
The Name of the Setting.
Definition at line 25 of file BadEditableSetting.cs.
|
private |
The Settings Object.
Definition at line 30 of file BadEditableSetting.cs.