Skip to main content

EnumArrayAttribute

A class in Root.Township, the global namespace.

Property attribute for an array indexed by an enum, so the inspector can label each entry with an enum name.

Constructors​

MemberWhat it is
EnumArrayAttribute(Type enumType, int startIndex = 0, bool isFlagEnum = false)Creates an EnumArrayAttribute from enumType, startIndex and isFlagEnum.

Properties​

MemberWhat it is
Type EnumType { get; }The enum whose names label the entries.
bool IsFlagEnum { get; }Whether the enum is a flags enum.
int StartIndex { get; }Enum value that the first entry stands for, probably.