Skip to content

EntityFilter

Defined in: EntityFilter.ts:5

Filter criteria for entity queries. All fields are AND’d together.

optional filter?: (entity) => boolean

Defined in: EntityFilter.ts:14

Custom predicate — called after other checks pass.

Entity

boolean


optional name?: string

Defined in: EntityFilter.ts:12

Match entities with this exact name.


optional tags?: string[]

Defined in: EntityFilter.ts:10

Match entities that have ALL of these tags.


optional trait?: TraitToken<any>

Defined in: EntityFilter.ts:8

Match entities whose class implements this trait.