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 : SettingPathAttributeBase 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.
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.