Table of Contents

Struct CharacterPetData

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

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

id long
characterID long
templateID int
abilities List<int>
spawned bool

CharacterPetData(long, long, long, int, List<int>, bool)

public CharacterPetData(long id, long version, long characterID, int templateID, List<int> abilities, bool spawned)

Parameters

id long
version long
characterID long
templateID int
abilities List<int>
spawned bool

Fields

Abilities

List of pet ability template IDs.

public readonly List<int> Abilities

Field Value

List<int>

CharacterID

Character that owns this pet.

public readonly long CharacterID

Field Value

long

ID

Primary key.

public readonly long ID

Field Value

long

Spawned

Whether the pet is currently spawned.

public readonly bool Spawned

Field Value

bool

TemplateID

Pet template ID.

public readonly int TemplateID

Field Value

int

Version

Optimistic concurrency version.

public readonly long Version

Field Value

long

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

newVersion long

The new version value.

Returns

CharacterPetData

A new instance with the updated version.