Table of Contents

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

ISettingsClass<bool>

Float

Setting collection for float values.

ISettingsClass<float> Float { get; }

Property Value

ISettingsClass<float>

Int

Setting collection for integer values.

ISettingsClass<int> Int { get; }

Property Value

ISettingsClass<int>

String

Setting collection for string values.

ISettingsClass<string> String { get; }

Property Value

ISettingsClass<string>

Strings

Setting collection for string list values.

ISettingsClass<List<string>> Strings { get; }

Property Value

ISettingsClass<List<string>>

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 string

Key to the setting

OnValueChanged OnSettingsChanged<T>

the OnValueChanged event fired.

Type Parameters

T

The type of the value that was changed.