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

EntityId

Gets the stable runtime identifier of this entity.

public required int EntityId { get; init; }

Property Value

int

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

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