Table of Contents

Struct CharacterBuffData

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

Character buff data transfer object.

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

Constructors

CharacterBuffData(long, long, int, double, double, int, int)

public CharacterBuffData(long id, long characterID, int templateID, double remainingTime, double tickTime, int stacks, int tickCount)

Parameters

id long
characterID long
templateID int
remainingTime double
tickTime double
stacks int
tickCount int

CharacterBuffData(long, long, long, int, double, double, int, int)

public CharacterBuffData(long id, long version, long characterID, int templateID, double remainingTime, double tickTime, int stacks, int tickCount)

Parameters

id long
version long
characterID long
templateID int
remainingTime double
tickTime double
stacks int
tickCount int

Fields

CharacterID

Character that owns this buff.

public readonly long CharacterID

Field Value

long

ID

Primary key.

public readonly long ID

Field Value

long

RemainingTime

Remaining buff duration.

public readonly double RemainingTime

Field Value

double

Stacks

Number of buff stacks.

public readonly int Stacks

Field Value

int

TemplateID

Buff template ID.

public readonly int TemplateID

Field Value

int

TickCount

Number of ticks that have fired for this buff instance (cumulative tick modifiers). Persisted so cumulative effects (DoT stacking) survive logout.

public readonly int TickCount

Field Value

int

TickTime

Time between buff ticks.

public readonly double TickTime

Field Value

double

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

Parameters

newVersion long

The new version value.

Returns

CharacterBuffData

A new instance with the updated version.