Table of Contents

Struct CharacterAttributeData

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

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

id long
characterID long
templateID int
value int
currentValue float

CharacterAttributeData(long, long, long, int, int, float)

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

Parameters

newVersion long

The new version value.

Returns

CharacterAttributeData

A new instance with the updated version.