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

Method update

packages/core/src/Core.ts:423–430  ·  view source on GitHub ↗

* @zh 更新游戏逻辑 * @en Update game logic * * @zh 此方法应该在游戏引擎的更新循环中调用。会自动更新全局服务和当前场景。 * @en This method should be called in the game engine's update loop. Automatically updates global services and current scene. * * @param deltaTime - @zh 外部引擎提供的帧时间间隔(秒)@en Frame delta time i

(deltaTime: number)

Source from the content-addressed store, hash-verified

421 * ```
422 */
423 public static update(deltaTime: number): void {
424 if (!this._instance) {
425 Core._logger.warn('Core实例未创建,请先调用Core.create()');
426 return;
427 }
428
429 this._instance.updateInternal(deltaTime);
430 }
431
432
433 /**

Callers

nothing calls this directly

Calls 2

warnMethod · 0.45
updateInternalMethod · 0.45

Tested by

no test coverage detected