MCPcopy Create free account
hub / github.com/esengine/esengine / find

Method find

packages/core/src/ECS/Core/FluentAPI/ECSFluentAPI.ts:69–71  ·  view source on GitHub ↗

* 查找实体 * @param componentTypes 组件类型 * @returns 实体数组

(...componentTypes: ComponentType[])

Source from the content-addressed store, hash-verified

67 * @returns 实体数组
68 */
69 public find(...componentTypes: ComponentType[]): readonly Entity[] {
70 return this.querySystem.queryAll(...componentTypes).entities;
71 }
72
73 /**
74 * 查找第一个匹配的实体

Callers

nothing calls this directly

Calls 1

queryAllMethod · 0.45

Tested by

no test coverage detected