Table of Contents

Struct PlotVaultData

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

House vault entry data transfer object.

public struct PlotVaultData
Inherited Members

Remarks

Self-describing on purpose: BaseFee and FeeRatePerDay travel with the row so what it costs to retrieve is answerable from this and the clock alone, with no template loaded and no server configuration consulted. A player quoted a price when their house was taken should be charged that price, not whatever the rates happen to be today.

Constructors

PlotVaultData(long, long, int, int, long, DateTime, long, float)

public PlotVaultData(long id, long characterID, int templateID, int amount, long originalPlotID, DateTime storedAtUtc, long baseFee, float feeRatePerDay)

Parameters

id long
characterID long
templateID int
amount int
originalPlotID long
storedAtUtc DateTime
baseFee long
feeRatePerDay float

Fields

Amount

How many are held.

public readonly int Amount

Field Value

int

BaseFee

The fee charged before any time had passed.

public readonly long BaseFee

Field Value

long

CharacterID

The character whose vault holds it.

public readonly long CharacterID

Field Value

long

FeeRatePerDay

How much of the base fee is added per day stored.

public readonly float FeeRatePerDay

Field Value

float

ID

Primary key.

public readonly long ID

Field Value

long

OriginalPlotID

The plot it came off.

public readonly long OriginalPlotID

Field Value

long

StoredAtUtc

When it was stored (UTC).

public readonly DateTime StoredAtUtc

Field Value

DateTime

TemplateID

The structure template stored.

public readonly int TemplateID

Field Value

int