跳转到内容

QueryBuilder

此内容尚不支持你的语言。

Defined in: ecs/query.ts:257

A Query before it is handed to a system, narrowable by components the match must or must not have. Each call returns a NEW builder, so narrowing a shared query does not disturb it, and any of them is a valid parameter.

C extends readonly QueryArg[]

filter(expr): QueryBuilder<C>

Defined in: ecs/query.ts:263

Attach a composable filter expression. Replaces any prior call.

FilterExpr

QueryBuilder<C>


with(…components): QueryBuilder<C>

Defined in: ecs/query.ts:259

Match only entities that also carry all of these; their data is not yielded.

AnyComponentDef[]

QueryBuilder<C>


without(…components): QueryBuilder<C>

Defined in: ecs/query.ts:261

Exclude entities carrying any of these.

AnyComponentDef[]

QueryBuilder<C>