Represents query for entities that match a list of types that is cached and observable

Queries can be strongly typed by supplying a type union in the optional type parameter

const queryAB = new ex.Query<ComponentTypeA | ComponentTypeB>(['A', 'B']);

Type Parameters

Hierarchy

Constructors

Properties

observers: Util.Observer<AddedEntity | RemovedEntity>[] = []
subscriptions: ((val: AddedEntity | RemovedEntity) => any)[] = []
types: readonly string[]

Accessors

Methods