Vixen
c7401864
csharp
public readonly record struct Placement

One thing that is down in a house.

Read the guide page for this →

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 Id

    Which placement it is, unique within its plot and never reused.

  • public DefId Furniture

    What it is.

  • public HouseSurface Surface

    What the caller found it standing on.

  • public Vector3 Position

    Where, snapped.

  • public float Yaw

    Which way it faces, in radians, snapped.

  • public PlayerId By

    Who put it there. Worth having in a guild hall.

Methods (1)

Used by (2)

  • HousePlotVixen.Gameplay.Housing
  • HousingTestsVixen.Gameplay.Housing.Tests