Table of Contents

Struct CharacterPetAttributeData

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

Character pet attribute data transfer object.

public struct CharacterPetAttributeData : IVersioned<CharacterPetAttributeData>
Implements
Inherited Members
Extension Methods

Constructors

CharacterPetAttributeData(long, long, int, int, float)

public CharacterPetAttributeData(long id, long characterID, int templateID, int value, float currentValue)

Parameters

id long
characterID long
templateID int
value int
currentValue float

CharacterPetAttributeData(long, long, long, int, int, float)

public CharacterPetAttributeData(long id, long version, long characterID, int templateID, int value, float currentValue)

Parameters

id long
version long
characterID long
templateID int
value int
currentValue float

Fields

CharacterID

Character that owns this pet attribute.

public readonly long CharacterID

Field Value

long

CurrentValue

Current attribute value.

public readonly float CurrentValue

Field Value

float

ID

Primary key.

public readonly long ID

Field Value

long

TemplateID

Attribute template ID.

public readonly int TemplateID

Field Value

int

Value

Base attribute value.

public readonly int Value

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 CharacterPetAttributeData WithVersion(long newVersion)

Parameters

newVersion long

The new version value.

Returns

CharacterPetAttributeData

A new instance with the updated version.