Struct PlotData
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
idlongworldServerIDlongsceneNamestringplotKeystringownerCharacterIDlongownerGuildIDlongtimeClaimedDateTime?taxDueUtcDateTime?taxDelinquentSinceUtcDateTime?stateint
Fields
ID
Primary key.
public readonly long ID
Field Value
OwnerCharacterID
The owning character, or zero.
public readonly long OwnerCharacterID
Field Value
OwnerGuildID
The owning guild, or zero.
public readonly long OwnerGuildID
Field Value
PlotKey
The designer-authored key identifying the foundation within its scene.
public readonly string PlotKey
Field Value
SceneName
The Unity scene the plot's foundation is authored in.
public readonly string SceneName
Field Value
State
Where the plot is in its lifecycle, as a FishMMO.Shared.PlotState value.
public readonly int State
Field Value
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
TaxDueUtc
When the next tax payment falls due, or null while unowned.
public readonly DateTime? TaxDueUtc
Field Value
TimeClaimed
When the current owner claimed the plot, or null while unclaimed.
public readonly DateTime? TimeClaimed
Field Value
WorldServerID
The world server this land belongs to.
public readonly long WorldServerID