◆ GetAllValues< T >()
T [] GTA.ScriptSettings.GetAllValues< T > |
( |
string |
section, |
|
|
string |
name |
|
) |
| |
Reads all the values at a specified key and section from this ScriptSettings.
- Parameters
-
section | The section where the value is. |
name | The name of the key the values are saved at. |
◆ GetValue< T >()
T GTA.ScriptSettings.GetValue< T > |
( |
string |
section, |
|
|
string |
name, |
|
|
T |
defaultvalue |
|
) |
| |
Reads a value from this ScriptSettings.
- Parameters
-
section | The section where the value is. |
name | The name of the key the value is saved at. |
defaultvalue | The fall-back value if the key doesn't exist or casting to type T fails. |
- Returns
- The value at in .
◆ Load()
Loads a ScriptSettings from the specified file.
- Parameters
-
filename | The filename to load the settings from. |
◆ Save()
bool GTA.ScriptSettings.Save |
( |
| ) |
|
Saves this ScriptSettings to file.
- Returns
true
if the file saved successfully; otherwise, false
◆ SetValue< T >()
void GTA.ScriptSettings.SetValue< T > |
( |
string |
section, |
|
|
string |
name, |
|
|
T |
value |
|
) |
| |
Sets a value in this ScriptSettings.
- Parameters
-
section | The section where the value is. |
name | The name of the key the value is saved at. |
value | The value to set the key to. |
The documentation for this class was generated from the following file:
- C:/Users/nitan/source/repos/scripthookvdotnet/source/scripting_v3/GTA/ScriptSettings.cs