* 查询拥有所有指定组件的实体 * * @param componentTypes - 组件类型数组 * @returns 查询结果 * * @example * ```typescript * const result = scene.queryAll(Position, Velocity); * for (const entity of result.entities) { * const pos = entity.getComponent(Position); * cons
(...componentTypes: ComponentType[])
| 1001 | * ``` |
| 1002 | */ |
| 1003 | public queryAll(...componentTypes: ComponentType[]): { entities: readonly Entity[] } { |
| 1004 | return this.querySystem.queryAll(...componentTypes); |
| 1005 | } |
| 1006 | |
| 1007 | /** |
| 1008 | * 查询拥有任意一个指定组件的实体 |
no outgoing calls
no test coverage detected