Skip to content
Concord

Class EnumMemberAttribute

Namespace
Concord
Assembly
Concord.Enums.dll

Overrides the persisted id of an extended enum member. Use it after renaming a field, so the member keeps the integer it already has in saved data.

[AttributeUsage(AttributeTargets.Field)]
public sealed class EnumMemberAttribute : Attribute
Inheritance
EnumMemberAttribute
Inherited Members

Constructors

EnumMemberAttribute(string)

Initializes a new id override.

public EnumMemberAttribute(string id)

Parameters

id string

The persisted id. It must stay stable for the life of the mod.

Properties

Id

The persisted id this member is stored under.

public string Id { get; }

Property Value

string