csharp
public readonly record struct PlacementOne thing that is down in a house.
Remarks
⚠ A position and a facing, not a transform. Furniture turns about the up axis and nothing else — which is what every housing feature that shipped does, because free three-axis rotation is unauthorable with a mouse and doubles a row that ten thousand houses each have hundreds of. A prop that hangs at an angle is scene content, not a player's decoration.
Fields and properties (6)
public int IdWhich placement it is, unique within its plot and never reused.
public DefId FurnitureWhat it is.
public HouseSurface SurfaceWhat the caller found it standing on.
public Vector3 PositionWhere, snapped.
public float YawWhich way it faces, in radians, snapped.
public PlayerId ByWho put it there. Worth having in a guild hall.
Methods (1)
public Placement(int Id, DefId Furniture, HouseSurface Surface, Vector3 Position, float Yaw, PlayerId By)One thing that is down in a house.
Used by (2)
- HousePlotVixen.Gameplay.Housing
- HousingTestsVixen.Gameplay.Housing.Tests