World
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Properties
publicentityManager
publicqueryManager
publicscene
publicsystemManager
Accessors
entities
Returns Entity<any>[]
Methods
add
Add an entity to the ECS world
Parameters
entity: Entity<any>
Returns void
clearEntities
Returns void
clearSystems
Returns void
get
Get a system out of the ECS world
Parameters
system: SystemCtor<System>
Returns System
query
Query the ECS world for entities that match your components
Type parameters
- TKnownComponentCtors: ComponentCtor<Component>
Parameters
requiredTypes: TKnownComponentCtors[]
Returns Query<TKnownComponentCtors>
queryTags
Type parameters
- TKnownTags: string
Parameters
requiredTags: TKnownTags[]
Returns TagQuery<TKnownTags>
remove
Remove an entity from the ECS world
Parameters
entity: Entity<any>
optionaldeferred: boolean
Returns void
update
Update systems by type and time elapsed in milliseconds
Parameters
type: SystemType
elapsedMs: number
Returns void
The World is a self-contained entity component system for a particular context.