Table of Contents

Class EntitySpawnRequest

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

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

int

ItemDefId

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

public int ItemDefId { get; init; }

Property Value

int

LocalBounds

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

public AabbF LocalBounds { get; init; }

Property Value

AabbF

Position

Gets the initial position in world tile units.

public Float2 Position { get; init; }

Property Value

Float2

Type

Gets the prototype entity type to spawn.

public EntityType Type { get; init; }

Property Value

EntityType

Velocity

Gets the initial velocity in tile units per second.

public Float2 Velocity { get; init; }

Property Value

Float2