![]() |
BadScript 2
|
Helper class that can be used to automatically load a settings object from a file. More...
Static Public Member Functions | |
static void | SetRootSettings (BadSettings settings) |
Sets the Root Settings Object. | |
Protected Member Functions | |
BadSettingsProvider (string path) | |
Creates a new Settings Provider. | |
Properties | |
static bool | HasRootSettings [get] |
Returns true if the root setting has been set. | |
static BadSettings | RootSettings [get] |
Returns the Root Settings Object. | |
BadSettings? | Settings [get] |
Returns the Instance of the Settings Provider. | |
static T | Instance [get] |
Returns the Instance of the Settings Provider. | |
Private Attributes | |
readonly string | m_Path |
The Settings Path Name('.' separated) | |
Static Private Attributes | |
static ? BadSettings | s_RootSettings |
The Root Settings Object. | |
static ? T | s_Instance |
The Instance of the Settings Provider. | |
Helper class that can be used to automatically load a settings object from a file.
T | : | BadSettingsProvider<T> | |
T | : | new() |
Definition at line 42 of file BadSettingsProvider.cs.
|
protected |
Creates a new Settings Provider.
path | The Settings Path |
Definition at line 58 of file BadSettingsProvider.cs.
|
static |
Sets the Root Settings Object.
settings | Root Settings |
Definition at line 33 of file BadSettingsProvider.cs.
|
private |
The Settings Path Name('.' separated)
Definition at line 52 of file BadSettingsProvider.cs.
|
staticprivate |
The Instance of the Settings Provider.
Definition at line 47 of file BadSettingsProvider.cs.
|
staticprivate |
The Root Settings Object.
Definition at line 13 of file BadSettingsProvider.cs.
|
staticget |
Returns true if the root setting has been set.
Definition at line 18 of file BadSettingsProvider.cs.
|
staticget |
Returns the Instance of the Settings Provider.
Definition at line 73 of file BadSettingsProvider.cs.
|
staticget |
Returns the Root Settings Object.
BadRuntimeException | Gets raised if the Root Settings Object has not been set. |
Definition at line 24 of file BadSettingsProvider.cs.
|
get |
Returns the Instance of the Settings Provider.
Definition at line 66 of file BadSettingsProvider.cs.