API ReferenceAttributes
SettingFactoryEnumAttribute
Registers a setting family implementation for every enum.
[AttributeUsage(AttributeTargets.Class)]
public sealed class SettingFactoryEnumAttribute : AttributeRegisters an open generic class with one type parameter as the implementation of a setting family for every enum.
Inheritance: Object → Attribute → SettingFactoryEnumAttribute
Attributes: AttributeUsageAttribute
Reserved
Gears scans only its own assembly for this attribute, so it has no effect in a mod assembly.
Constructors
SettingFactoryEnumAttribute(Type)
public SettingFactoryEnumAttribute(Type familyInterface)Initializes the attribute with the open generic family interface.
Properties
FamilyInterface
public Type FamilyInterface { get; }Gets the open generic setting interface.