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

Function before

packages/core/src/ECS/Systems/EntitySystem.ts:347–351  ·  view source on GitHub ↗

* 声明此系统在指定系统之前执行 * Declare this system executes before specified systems * * @param systems 系统名称列表 | System names * @returns this (用于链式调用 | for chaining) * * @example * ```typescript * class MySystem extends EntitySystem { * constructor() { *

(...systems: string[])

Source from the content-addressed store, hash-verified

345 * ```
346 */
347 public before(...systems: string[]): this {
348 this._schedulingMetadata.before.push(...systems);
349 this._scene?.markSystemsOrderDirty();
350 return this;
351 }
352
353 /**
354 * 声明此系统在指定系统之后执行

Callers

nothing calls this directly

Calls 2

markSystemsOrderDirtyMethod · 0.80
pushMethod · 0.65

Tested by

no test coverage detected