Table of Contents

Struct CharacterAchievementData

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

Character achievement data transfer object.

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

Constructors

CharacterAchievementData(long, long, int, byte, uint)

public CharacterAchievementData(long id, long characterID, int templateID, byte tier, uint value)

Parameters

id long
characterID long
templateID int
tier byte
value uint

CharacterAchievementData(long, long, long, int, byte, uint)

public CharacterAchievementData(long id, long version, long characterID, int templateID, byte tier, uint value)

Parameters

id long
version long
characterID long
templateID int
tier byte
value uint

Fields

CharacterID

Character that earned this achievement.

public readonly long CharacterID

Field Value

long

ID

Primary key.

public readonly long ID

Field Value

long

TemplateID

Achievement template ID.

public readonly int TemplateID

Field Value

int

Tier

Achievement tier level.

public readonly byte Tier

Field Value

byte

Value

Achievement progress value.

public readonly uint Value

Field Value

uint

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

Parameters

newVersion long

The new version value.

Returns

CharacterAchievementData

A new instance with the updated version.