Table of Contents

Struct PlotData

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

Plot data transfer object.

public struct PlotData
Inherited Members

Remarks

Carries ownership as the two columns the row stores rather than as a resolved owner, because this assembly cannot reference the shared types where that resolution lives. Callers turn the pair into a single answer with FishMMO.Shared.PlotOwner.TryFromColumns, which is also where a row holding both is caught.

Constructors

PlotData(long, long, string, string, long, long, DateTime?, DateTime?, DateTime?, int)

public PlotData(long id, long worldServerID, string sceneName, string plotKey, long ownerCharacterID, long ownerGuildID, DateTime? timeClaimed, DateTime? taxDueUtc = null, DateTime? taxDelinquentSinceUtc = null, int state = 0)

Parameters

id long
worldServerID long
sceneName string
plotKey string
ownerCharacterID long
ownerGuildID long
timeClaimed DateTime?
taxDueUtc DateTime?
taxDelinquentSinceUtc DateTime?
state int

Fields

ID

Primary key.

public readonly long ID

Field Value

long

OwnerCharacterID

The owning character, or zero.

public readonly long OwnerCharacterID

Field Value

long

OwnerGuildID

The owning guild, or zero.

public readonly long OwnerGuildID

Field Value

long

PlotKey

The designer-authored key identifying the foundation within its scene.

public readonly string PlotKey

Field Value

string

SceneName

The Unity scene the plot's foundation is authored in.

public readonly string SceneName

Field Value

string

State

Where the plot is in its lifecycle, as a FishMMO.Shared.PlotState value.

public readonly int State

Field Value

int

Remarks

An integer for the same reason the owner arrives as two columns: this assembly cannot reference the shared enum. Callers cast, and PlotStateParityTests pins the pairing.

TaxDelinquentSinceUtc

When the owner first failed to pay, or null while up to date.

public readonly DateTime? TaxDelinquentSinceUtc

Field Value

DateTime?

TaxDueUtc

When the next tax payment falls due, or null while unowned.

public readonly DateTime? TaxDueUtc

Field Value

DateTime?

TimeClaimed

When the current owner claimed the plot, or null while unclaimed.

public readonly DateTime? TimeClaimed

Field Value

DateTime?

WorldServerID

The world server this land belongs to.

public readonly long WorldServerID

Field Value

long