Home > @esengine/ecs-framework-monorepo > ComponentSparseSet > queryMultipleAnd
ComponentSparseSet.queryMultipleAnd() method
多组件查询(AND操作)
查找同时包含所有指定组件的实体。
Signature:
typescript
queryMultipleAnd(componentTypes: ComponentType[]): Set<Entity>;
Parameters
Parameter | Type | Description |
---|---|---|
componentTypes | 组件类型数组 |
Returns:
Set<Entity>
满足条件的实体集合