Table of Contents

Class PlotStructureEntity

Namespace
FishMMO.Database.Npgsql.Entities
Assembly
FishMMO-DB.dll

One structure a player has built on a plot.

public class PlotStructureEntity : IVersionedEntity
Inheritance
PlotStructureEntity
Implements
Inherited Members

Remarks

Positioned relative to its plot rather than in world space. A plot's location belongs to the scene and a designer may move it; world coordinates would leave the house standing in a field when that happened, while an offset carries it along.

Properties

ID

Primary key.

public long ID { get; set; }

Property Value

long

LocalX

Offset east of the plot's origin, in metres.

public float LocalX { get; set; }

Property Value

float

LocalY

Offset above the plot's origin, in metres.

public float LocalY { get; set; }

Property Value

float

LocalZ

Offset north of the plot's origin, in metres.

public float LocalZ { get; set; }

Property Value

float

PlotID

The plot this structure stands on.

public long PlotID { get; set; }

Property Value

long

TemplateID

Which structure was built.

public int TemplateID { get; set; }

Property Value

int

TimeCreated

Row creation timestamp (UTC).

public DateTime TimeCreated { get; set; }

Property Value

DateTime

Version

Application-level concurrency token. Incremented on every write to detect stale updates.

public long Version { get; set; }

Property Value

long

Yaw

Rotation about the vertical axis, in degrees.

public float Yaw { get; set; }

Property Value

float

Remarks

Yaw alone, not a quaternion. Structures stand on the ground, so pitch and roll have no meaning here beyond letting a player leave a house lying on its side — and a single float is a quarter of the storage and cannot be denormalised into something invalid.