constructor<T extends unknown[], U extends QueryFilter<FilterTransform>[] = []>(world: World, componentTypes: [...TupleConstructor<T>[]], filters?: [...U[]])
View sourceCreates a query for a world and an ordered component signature.
Component constructors are converted to type IDs in the order supplied,
and that order is retained in every returned tuple. A component is
required when every filter reports it as required through
QueryFilter#isRequired. The built-in Optional,
Has, and Without filters refine matching entities
without adding entries to the result tuple; all configured filters must
accept an entity’s component combination for it to match.
The query’s matching selection is established immediately. Construction does not add entities or components to the world, and the component types do not need to have appeared in the world beforehand.
