Interface QueryInstance

Hierarchy

Properties

all: readonly Component<any>[]

AND - Gather entities as long as they have all these components

and: Readonly<Bitfield>

A bitfield for the AND match criteria

any: readonly Component<any>[]

OR - Gather entities as long as they have 0...* of these components

archetypes: Set<Archetype>
checkCandidacy: ((target: number, idx: number) => boolean)

Type declaration

    • (target: number, idx: number): boolean
    • Parameters

      • target: number
      • idx: number

      Returns boolean

components: Record<string, ComponentInstance<any>>
isDirty: boolean

true if the object is in a dirty state

A query becomes dirty when an archetype is added or removed

none: readonly Component<any>[]

NOT - Gather entities as long as they don't have these components

not: Readonly<Bitfield>

A bitfield for the NOT match criteria

or: Readonly<Bitfield>

A bitfield for the OR match criteria

Generated using TypeDoc