Table of Contents

Struct CharacterHotkeyData

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

Character hotkey data transfer object.

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

Constructors

CharacterHotkeyData(long, long, byte, int, long)

public CharacterHotkeyData(long id, long characterID, byte type, int slot, long referenceID)

Parameters

id long
characterID long
type byte
slot int
referenceID long

CharacterHotkeyData(long, long, long, byte, int, long)

public CharacterHotkeyData(long id, long version, long characterID, byte type, int slot, long referenceID)

Parameters

id long
version long
characterID long
type byte
slot int
referenceID long

Fields

CharacterID

Character that owns this hotkey.

public readonly long CharacterID

Field Value

long

ID

Primary key.

public readonly long ID

Field Value

long

ReferenceID

Referenced ability or item ID.

public readonly long ReferenceID

Field Value

long

Slot

Hotkey slot index.

public readonly int Slot

Field Value

int

Type

Hotkey type identifier.

public readonly byte Type

Field Value

byte

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

Parameters

newVersion long

The new version value.

Returns

CharacterHotkeyData

A new instance with the updated version.