Свойство | Type | Description | |
---|---|---|---|
Save | bool | ||
SaveSession | bool | ||
Settings | System |
Méthode | Description | |
---|---|---|
Get ( string key ) : string |
|
|
IsCompatible ( OSType type ) : bool |
Check if the current OS is compatible with the given type
|
|
Reload ( ) : void |
Reparse the settings.json file
|
|
Set ( string key, JToken value, bool session = true ) : void |
Set the value of a setting. Will automatically save.
|
|
SetPath ( string filePath ) : void |
Set the filePath of the settings.json file. Will automatically reload.
|
Méthode | Description | |
---|---|---|
Save ( ) : bool |
Save the current data to settings.json
|
|
SaveSession ( ) : bool | ||
Settings ( ) : System |
public static Get ( string key ) : string | ||
key | string | The setting to retrieve |
Résultat | string |
public static IsCompatible ( OSType type ) : bool | ||
type | OSType | The type of OS to check for compatibility with |
Résultat | bool |
public static Set ( string key, JToken value, bool session = true ) : void | ||
key | string | The name of the setting |
value | JToken | The new value of the setting |
session | bool | |
Résultat | void |
public static SetPath ( string filePath ) : void | ||
filePath | string | The path of the file |
Résultat | void |