Class ConfigWrapper<T>
Provides access to a single setting inside of a ConfigFile.
Namespace: BepInEx.Configuration
Assembly: BepInEx.dll
Syntax
[Obsolete("Use ConfigFile from new Bind overloads instead")]
public sealed class ConfigWrapper<T>
Type Parameters
Name | Description |
---|---|
T |
Type of the setting. |
Properties
Entry of this setting in the ConfigFile.
Declaration
public ConfigEntry<T> ConfigEntry { get; }
Property Value
Type | Description |
---|---|
ConfigEntry<T> |
Config file this setting is inside of.
Declaration
public ConfigFile ConfigFile { get; }
Property Value
Type | Description |
---|---|
ConfigFile |
Unique definition of this setting.
Declaration
public ConfigDefinition Definition { get; }
Property Value
Type | Description |
---|---|
ConfigDefinition |
Value of this setting.
Declaration
public T Value { get; set; }
Property Value
Type | Description |
---|---|
T |
Events
SettingChanged
Fired when the setting is changed. Does not detect changes made outside from this object.
Declaration
public event EventHandler SettingChanged
Event Type
Type | Description |
---|---|
System.EventHandler |