Struct CharacterArchetypeData
Character archetype data transfer object.
public struct CharacterArchetypeData : IVersioned<CharacterArchetypeData>
- Implements
- Inherited Members
- Extension Methods
Constructors
CharacterArchetypeData(long, long, int)
Initializes a new instance without a version (defaults to 0).
public CharacterArchetypeData(long id, long characterID, int templateID)
Parameters
CharacterArchetypeData(long, long, long, int)
Initializes a new instance with all fields.
public CharacterArchetypeData(long id, long version, long characterID, int templateID)
Parameters
Fields
CharacterID
Owning character identifier.
public readonly long CharacterID
Field Value
ID
Database row identifier.
public readonly long ID
Field Value
TemplateID
Template identifier referencing the archetype definition.
public readonly int TemplateID
Field Value
Version
Logical version for optimistic concurrency control.
public readonly long Version
Field Value
Methods
WithVersion(long)
Returns a new instance of this DTO with the specified version. Used by extension methods to create incremented copies.
public CharacterArchetypeData WithVersion(long newVersion)
Parameters
newVersionlongThe new version value.
Returns
- CharacterArchetypeData
A new instance with the updated version.