Skip to content

Home > @esengine/ecs-framework-monorepo > IComponentIndex > queryMultiple

IComponentIndex.queryMultiple() method

批量查询多个组件

Signature:

typescript
queryMultiple(componentTypes: ComponentType[], operation: 'AND' | 'OR'): Set<Entity>;

Parameters

Parameter

Type

Description

componentTypes

ComponentType[]

operation

'AND' | 'OR'

Returns:

Set<Entity>

基于 MIT 许可证发布