SHVDN  v3
An ASI plugin for Grand Theft Auto V, which allows running scripts written in any .NET language in-game. Developed by crosire https://github.com/crosire/scripthookvdotnet/
GTA.ScriptSettings Class Reference

Public Member Functions

bool Save ()
 Saves this ScriptSettings to file. More...
 
GetValue< T > (string section, string name, T defaultvalue)
 Reads a value from this ScriptSettings. More...
 
void SetValue< T > (string section, string name, T value)
 Sets a value in this ScriptSettings. More...
 
T[] GetAllValues< T > (string section, string name)
 Reads all the values at a specified key and section from this ScriptSettings. More...
 

Static Public Member Functions

static ScriptSettings Load (string filename)
 Loads a ScriptSettings from the specified file. More...
 

Member Function Documentation

◆ 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
sectionThe section where the value is.
nameThe name of the key the values are saved at.

◆ GetValue< T >()

T GTA.ScriptSettings.GetValue< T > ( string  section,
string  name,
defaultvalue 
)

Reads a value from this ScriptSettings.

Parameters
sectionThe section where the value is.
nameThe name of the key the value is saved at.
defaultvalueThe fall-back value if the key doesn't exist or casting to type T fails.
Returns
The value at in .

◆ Load()

static ScriptSettings GTA.ScriptSettings.Load ( string  filename)
static

Loads a ScriptSettings from the specified file.

Parameters
filenameThe 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,
value 
)

Sets a value in this ScriptSettings.

Parameters
sectionThe section where the value is.
nameThe name of the key the value is saved at.
valueThe value to set the key to.

The documentation for this class was generated from the following file: