 | ConfigurationGetInt Method |
Gets an integer configuration value stored by your mod.
Returns defaultVal if the specified key does not exist for your mod or
the value stored at the specified key is not an integer.
Namespace: spaar.ModLoaderAssembly: SpaarModLoader (in SpaarModLoader.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static int GetInt(
string key,
int defaultVal
)
Parameters
- key
- Type: SystemString
Key of your value - defaultVal
- Type: SystemInt32
Default value
Return Value
Type:
Int32The retrieved value
See Also