Config
Access your mod’s settings. You can check out how to use this module in the creating mod settings tutorial.
Enabled
Section titled “Enabled”Whether your mod is enabled.
Settings
Section titled “Settings”A Dictionary<string, object> containing your mod’s settings, it’s recommended to use the below methods to access the settings instead of interfacing with this dictionary directly.
GetSettingValue<T>
Section titled “GetSettingValue<T>”Gets the setting’s value from the mod’s config with the given key. Deserialized into type T.
Get Parameters
Section titled “Get Parameters”string key: The key to get.
SetSettingsValue
Section titled “SetSettingsValue”Sets the setting’s value in the mod’s config with the given key to the given value.
Set Parameters
Section titled “Set Parameters”string key: The key to set.object value: The value to set the key to, auto-serialized to a JSON string.
Copies the config of the mod.