Gears
API ReferenceAttributes

SettingFactoryFixedAttribute

Registers an implementation of a non-generic setting interface.

Sealed classNamespace GearsAPI.AttributesAssembly GearsAPI.dllSource
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class SettingFactoryFixedAttribute : Attribute

Registers a class as the implementation of a non-generic setting interface such as IColorSelectorGlobalSetting or IControlBindingSetting.

Inheritance: Object → Attribute → SettingFactoryFixedAttribute
Attributes: AttributeUsageAttribute

Reserved

Gears scans only its own assembly for this attribute, so it has no effect in a mod assembly.

Constructors

SettingFactoryFixedAttribute(Type)

public SettingFactoryFixedAttribute(Type keyInterface)

Initializes the attribute with the setting interface it implements.

Properties

KeyInterface

public Type KeyInterface { get; }

Gets the non-generic setting interface the class implements.

On this page