Click or drag to resize
ConfigurationGetBool Method
Gets a bool 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 bool.

Namespace: spaar.ModLoader
Assembly: SpaarModLoader (in SpaarModLoader.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static bool GetBool(
	string key,
	bool defaultVal
)

Parameters

key
Type: SystemString
Key of your value
defaultVal
Type: SystemBoolean
Default value

Return Value

Type: Boolean
The retrieved value
See Also