Table of Contents

Struct CharacterArchetypeData

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

Character archetype data transfer object.

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

Constructors

CharacterArchetypeData(long, long, int)

Initializes a new instance without a version (defaults to 0).

public CharacterArchetypeData(long id, long characterID, int templateID)

Parameters

id long
characterID long
templateID int

CharacterArchetypeData(long, long, long, int)

Initializes a new instance with all fields.

public CharacterArchetypeData(long id, long version, long characterID, int templateID)

Parameters

id long
version long
characterID long
templateID int

Fields

CharacterID

Owning character identifier.

public readonly long CharacterID

Field Value

long

ID

Database row identifier.

public readonly long ID

Field Value

long

TemplateID

Template identifier referencing the archetype definition.

public readonly int TemplateID

Field Value

int

Version

Logical version for optimistic concurrency control.

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

Parameters

newVersion long

The new version value.

Returns

CharacterArchetypeData

A new instance with the updated version.