Struct CharacterPetData
Character pet data transfer object.
public struct CharacterPetData : IVersioned<CharacterPetData>
- Implements
- Inherited Members
- Extension Methods
Constructors
CharacterPetData(long, long, int, List<int>, bool)
public CharacterPetData(long id, long characterID, int templateID, List<int> abilities, bool spawned)
Parameters
CharacterPetData(long, long, long, int, List<int>, bool)
public CharacterPetData(long id, long version, long characterID, int templateID, List<int> abilities, bool spawned)
Parameters
Fields
Abilities
List of pet ability template IDs.
public readonly List<int> Abilities
Field Value
CharacterID
Character that owns this pet.
public readonly long CharacterID
Field Value
ID
Primary key.
public readonly long ID
Field Value
Spawned
Whether the pet is currently spawned.
public readonly bool Spawned
Field Value
TemplateID
Pet 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 CharacterPetData WithVersion(long newVersion)
Parameters
newVersionlongThe new version value.
Returns
- CharacterPetData
A new instance with the updated version.