SettingListenerAttribute
Base for attributes that bind a static method to a setting's event. The setting path must be in the form "tabName.CategoryName.SettingName" for global settings and "CategoryName.SettingName" for world settings.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public abstract class SettingListenerAttribute : SettingPathAttributeWrite * as the setting name, as in "tabName.CategoryName.*" or "CategoryName.*", to bind the method to every setting in the category that fits it. Settings that do not fit, such as a value setting of a different T, are skipped without a log line. A path that fits no setting at all is reported. The wildcard expands when BindSettingsClass runs, so a setting created in the category later is not bound.
Inheritance: Object → Attribute → SettingPathAttribute → SettingListenerAttribute
Derived: SettingOnValueChangedAttribute · SettingOnAppliedAttribute · SettingOnSelectedChangedAttribute · SettingOnEnabledAttribute
Attributes: AttributeUsageAttribute
Constructors
SettingListenerAttribute(String)
protected SettingListenerAttribute(string settingPath)Protected. Passes settingPath to the base constructor.
SettingPlayerActionAttribute
Assigns the PlayerAction held by a static field or property to the Binding setting its path names. Pass the declaring type to BindSettingsClass and Gears reads the member and sets IControlBindingSetting.PlayerAction from it.
SettingOnValueChangedAttribute
Binds a static method to OnValueChanged. Raised on global value settings; on a world path the method is bound invoke-only.