Class EntitySpawnRequest
Describes the initial state for a spawned entity.
public sealed class EntitySpawnRequest
- Inheritance
-
EntitySpawnRequest
- Inherited Members
Properties
Amount
Gets the carried amount associated with this entity when it represents a world drop.
public int Amount { get; init; }
Property Value
ItemDefId
Gets the item definition identifier associated with this entity when it represents a world drop.
public int ItemDefId { get; init; }
Property Value
LocalBounds
Gets the entity-local collision bounds expressed in tile units.
public AabbF LocalBounds { get; init; }
Property Value
Position
Gets the initial position in world tile units.
public Float2 Position { get; init; }
Property Value
Type
Gets the prototype entity type to spawn.
public EntityType Type { get; init; }
Property Value
Velocity
Gets the initial velocity in tile units per second.
public Float2 Velocity { get; init; }