EntityManager
Index
Constructors
constructor
Parameters
_world: World
Returns EntityManager
Properties
public_entityIndex
Type declaration
[entityId string]: Entity
publicentities
Methods
publicaddEntity
Parameters
entity: Entity<any>
Returns void
publicclear
Returns void
publicfindEntitiesForRemoval
Returns void
publicgetById
Parameters
id: number
Returns Entity<any>
publicgetByName
Parameters
name: string
Returns Entity<any>[]
publicprocessComponentRemovals
Returns void
publicprocessEntityRemovals
Returns void
publicremoveEntity
Parameters
entity: Entity<any>
optionaldeferred: boolean
Returns void
publicupdateEntities
Runs the entity lifecycle
Parameters
scene: Scene<unknown>
elapsed: number
Returns void
Adds an entity to be tracked by the EntityManager