 | ConfigurationGetFloat Method |
Gets a float 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 a float.
Namespace: spaar.ModLoaderAssembly: SpaarModLoader (in SpaarModLoader.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static float GetFloat(
string key,
float defaultVal
)
Parameters
- key
- Type: SystemString
Key of your value - defaultVal
- Type: SystemSingle
Default value
Return Value
Type:
SingleThe retrieved value
See Also