Table of Contents

Class ObjectInstance

Namespace
TileWorld.Engine.World.Objects
Assembly
TileWorld.Engine.dll

Represents a placed object instance stored in the world.

public sealed class ObjectInstance
Inheritance
ObjectInstance
Inherited Members

Properties

AnchorCoord

Gets the logical anchor coordinate used to place this object.

public required WorldTileCoord AnchorCoord { get; init; }

Property Value

WorldTileCoord

Direction

Gets the facing direction of this object instance.

public Direction Direction { get; init; }

Property Value

Direction

InstanceId

Gets the stable runtime identifier of this object instance.

public required int InstanceId { get; init; }

Property Value

int

ObjectDefId

Gets the content definition identifier used to interpret this object instance.

public required int ObjectDefId { get; init; }

Property Value

int

StateFlags

Gets instance state flags reserved for future object-specific runtime state.

public ushort StateFlags { get; init; }

Property Value

ushort