Interface ISettings
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
Setting interface for multiple settings.
public interface ISettings
- Extension Methods
Properties
Bool
Setting collection for boolean values.
ISettingsClass<bool> Bool { get; }
Property Value
Float
Setting collection for float values.
ISettingsClass<float> Float { get; }
Property Value
Int
Setting collection for integer values.
ISettingsClass<int> Int { get; }
Property Value
String
Setting collection for string values.
ISettingsClass<string> String { get; }
Property Value
Strings
Setting collection for string list values.
ISettingsClass<List<string>> Strings { get; }
Property Value
Methods
AddWatcher<T>(string, OnSettingsChanged<T>)
Setting watcher for changes in values for a given setting.
void AddWatcher<T>(string key, OnSettingsChanged<T> OnValueChanged)
Parameters
key
stringKey to the setting
OnValueChanged
OnSettingsChanged<T>the OnValueChanged event fired.
Type Parameters
T
The type of the value that was changed.