Struct CharacterSkillData
Character skill data transfer object.
public struct CharacterSkillData : IVersioned<CharacterSkillData>
- Implements
- Inherited Members
- Extension Methods
Constructors
CharacterSkillData(long, long, int, int, int, double, double)
public CharacterSkillData(long id, long characterID, int templateID, int level, int experience, double castTimeEnd, double cooldownEnd)
Parameters
idlongcharacterIDlongtemplateIDintlevelintexperienceintcastTimeEnddoublecooldownEnddouble
CharacterSkillData(long, long, long, int, int, int, double, double)
public CharacterSkillData(long id, long version, long characterID, int templateID, int level, int experience, double castTimeEnd, double cooldownEnd)
Parameters
idlongversionlongcharacterIDlongtemplateIDintlevelintexperienceintcastTimeEnddoublecooldownEnddouble
Fields
CastTimeEnd
Timestamp when cast completes.
public readonly double CastTimeEnd
Field Value
CharacterID
Character that owns this skill.
public readonly long CharacterID
Field Value
CooldownEnd
Timestamp when cooldown ends.
public readonly double CooldownEnd
Field Value
Experience
Current skill experience.
public readonly int Experience
Field Value
ID
Primary key.
public readonly long ID
Field Value
Level
Current skill level.
public readonly int Level
Field Value
TemplateID
Skill template ID.
public readonly int TemplateID
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 CharacterSkillData WithVersion(long newVersion)
Parameters
newVersionlongThe new version value.
Returns
- CharacterSkillData
A new instance with the updated version.