Table of Contents

Class Entity

Namespace
TileWorld.Engine.Runtime.Entities
Assembly
TileWorld.Engine.dll

Represents a prototype runtime entity managed by the engine.

public sealed class Entity
Inheritance
Entity
Inherited Members

Properties

Amount

Gets or sets the carried amount associated with this entity when it represents a world drop.

public int Amount { get; set; }

Property Value

int

CurrentLiquidType

Gets the dominant liquid type currently intersecting this entity.

public LiquidKind CurrentLiquidType { get; }

Property Value

LiquidKind

Remarks

This value is runtime-derived and is not persisted to disk.

EntityId

Gets the stable runtime identifier of this entity.

public required int EntityId { get; init; }

Property Value

int

IsInLiquid

Gets a value indicating whether this entity is currently submerged in liquid.

public bool IsInLiquid { get; }

Property Value

bool

Remarks

This value is runtime-derived and is not persisted to disk.

ItemDefId

Gets or sets the item definition identifier associated with this entity when it represents a world drop.

public int ItemDefId { get; set; }

Property Value

int

LocalBounds

Gets or sets the entity-local collision bounds expressed in tile units.

public AabbF LocalBounds { get; set; }

Property Value

AabbF

Position

Gets or sets the entity position in world tile units.

public Float2 Position { get; set; }

Property Value

Float2

StateFlags

Gets or sets the entity runtime state flags.

public EntityStateFlags StateFlags { get; set; }

Property Value

EntityStateFlags

Submersion

Gets the current liquid submersion ratio in the range 0..1.

public float Submersion { get; }

Property Value

float

Remarks

This value is runtime-derived and is not persisted to disk.

Type

Gets the prototype entity type.

public required EntityType Type { get; init; }

Property Value

EntityType

Velocity

Gets or sets the entity velocity in tile units per second.

public Float2 Velocity { get; set; }

Property Value

Float2

WorldBounds

Gets the entity bounds in world tile units.

public AabbF WorldBounds { get; }

Property Value

AabbF