Class ObjectDef
Describes a placeable multi-tile world object such as furniture or stations.
public sealed class ObjectDef
- Inheritance
-
ObjectDef
- Inherited Members
Properties
AnchorOffset
Gets the offset from the top-left footprint origin to the logical anchor coordinate used by placement APIs.
public Int2 AnchorOffset { get; init; }
Property Value
BreakDropItemId
Gets the item definition identifier spawned when the object is destroyed. A value of 0 disables drops.
public int BreakDropItemId { get; init; }
Property Value
Id
Gets the stable numeric identifier used to reference this object definition.
public int Id { get; init; }
Property Value
IsInteractive
Gets a value indicating whether the object participates in interaction workflows.
public bool IsInteractive { get; init; }
Property Value
Name
Gets the human-readable object name used by tools and debug output.
public string Name { get; init; }
Property Value
RequiresSupport
Gets a value indicating whether the object requires solid support below its bottom edge.
public bool RequiresSupport { get; init; }
Property Value
SizeInTiles
Gets the object footprint size in tiles.
public Int2 SizeInTiles { get; init; }
Property Value
Visual
Gets the visual metadata used by render backends to draw this object.
public TileVisualDef Visual { get; init; }