Struct CharacterAttributeData
Character attribute data transfer object.
public struct CharacterAttributeData : IVersioned<CharacterAttributeData>
- Implements
- Inherited Members
- Extension Methods
Constructors
CharacterAttributeData(long, long, int, int, float)
public CharacterAttributeData(long id, long characterID, int templateID, int value, float currentValue)
Parameters
CharacterAttributeData(long, long, long, int, int, float)
public CharacterAttributeData(long id, long version, long characterID, int templateID, int value, float currentValue)
Parameters
Fields
CharacterID
Character that owns this attribute.
public readonly long CharacterID
Field Value
CurrentValue
Current attribute value.
public readonly float CurrentValue
Field Value
ID
Primary key.
public readonly long ID
Field Value
TemplateID
Attribute template ID.
public readonly int TemplateID
Field Value
Value
Base attribute value.
public readonly int Value
Field Value
Version
Optimistic concurrency version.
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 CharacterAttributeData WithVersion(long newVersion)
Parameters
newVersionlongThe new version value.
Returns
- CharacterAttributeData
A new instance with the updated version.