Class Entity
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
EntityId
Gets the stable runtime identifier of this entity.
public required int EntityId { get; init; }
Property Value
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
LocalBounds
Gets or sets the entity-local collision bounds expressed in tile units.
public AabbF LocalBounds { get; set; }
Property Value
Position
Gets or sets the entity position in world tile units.
public Float2 Position { get; set; }
Property Value
StateFlags
Gets or sets the entity runtime state flags.
public EntityStateFlags StateFlags { get; set; }
Property Value
Type
Gets the prototype entity type.
public required EntityType Type { get; init; }
Property Value
Velocity
Gets or sets the entity velocity in tile units per second.
public Float2 Velocity { get; set; }
Property Value
WorldBounds
Gets the entity bounds in world tile units.
public AabbF WorldBounds { get; }