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
CurrentLiquidType
Gets the dominant liquid type currently intersecting this entity.
public LiquidKind CurrentLiquidType { get; }
Property Value
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
IsInLiquid
Gets a value indicating whether this entity is currently submerged in liquid.
public bool IsInLiquid { get; }
Property Value
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
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
Submersion
Gets the current liquid submersion ratio in the range 0..1.
public float Submersion { get; }
Property Value
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
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; }