Class PlotStructureEntity
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
LocalX
Offset east of the plot's origin, in metres.
public float LocalX { get; set; }
Property Value
LocalY
Offset above the plot's origin, in metres.
public float LocalY { get; set; }
Property Value
LocalZ
Offset north of the plot's origin, in metres.
public float LocalZ { get; set; }
Property Value
PlotID
The plot this structure stands on.
public long PlotID { get; set; }
Property Value
TemplateID
Which structure was built.
public int TemplateID { get; set; }
Property Value
TimeCreated
Row creation timestamp (UTC).
public DateTime TimeCreated { get; set; }
Property Value
Version
Application-level concurrency token. Incremented on every write to detect stale updates.
public long Version { get; set; }
Property Value
Yaw
Rotation about the vertical axis, in degrees.
public float Yaw { get; set; }
Property Value
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.