Skip to content

Query

Live set of entities that have every listed component. Iterate entities; it stays dense.

new Query(components): Query

readonly Component<Schema>[]

Query

readonly components: readonly Component<Schema>[]


readonly entities: number[]


version: number

Changes whenever an entity enters or leaves the query, so systems can cache work derived from entities.