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

Method getCondition

packages/core/src/ECS/Utils/Matcher.ts:236–246  ·  view source on GitHub ↗

* 获取查询条件(只读)

()

Source from the content-addressed store, hash-verified

234 * 获取查询条件(只读)
235 */
236 public getCondition(): Readonly<QueryCondition> {
237 return {
238 all: [...this.condition.all],
239 any: [...this.condition.any],
240 none: [...this.condition.none],
241 ...(this.condition.tag !== undefined && { tag: this.condition.tag }),
242 ...(this.condition.name !== undefined && { name: this.condition.name }),
243 ...(this.condition.component !== undefined && { component: this.condition.component }),
244 ...(this.condition.matchNothing && { matchNothing: true })
245 };
246 }
247
248 /**
249 * 检查是否为空条件

Callers 5

queryEntitiesFunction · 0.45
matchesEntityFunction · 0.45
Matcher.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected