@esengine/ecs-framework 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @esengine/ecs-framework v2.2.0
2
+ * @esengine/ecs-framework v2.2.1
3
3
  * TypeScript definitions
4
4
  */
5
5
  /**
@@ -7476,6 +7476,17 @@ declare class SceneManager implements IService {
7476
7476
  * 日志器
7477
7477
  */
7478
7478
  private _logger;
7479
+ /**
7480
+ * 场景切换回调函数
7481
+ */
7482
+ private _onSceneChangedCallback?;
7483
+ /**
7484
+ * 设置场景切换回调
7485
+ *
7486
+ * @param callback 场景切换时的回调函数
7487
+ * @internal
7488
+ */
7489
+ setSceneChangedCallback(callback: () => void): void;
7479
7490
  /**
7480
7491
  * 设置当前场景(立即切换)
7481
7492
  *
@@ -7846,7 +7857,7 @@ interface IWorldManagerConfig {
7846
7857
  * }
7847
7858
  * ```
7848
7859
  */
7849
- declare class WorldManager {
7860
+ declare class WorldManager implements IService {
7850
7861
  private readonly _config;
7851
7862
  private readonly _worlds;
7852
7863
  private readonly _activeWorlds;
@@ -8008,6 +8019,11 @@ declare class WorldManager {
8008
8019
  * 销毁WorldManager
8009
8020
  */
8010
8021
  destroy(): void;
8022
+ /**
8023
+ * 实现 IService 接口的 dispose 方法
8024
+ * 调用 destroy 方法进行清理
8025
+ */
8026
+ dispose(): void;
8011
8027
  /**
8012
8028
  * 启动清理定时器
8013
8029
  */
@@ -9334,6 +9350,12 @@ declare class Core {
9334
9350
  * 管理当前场景的生命周期。
9335
9351
  */
9336
9352
  private _sceneManager;
9353
+ /**
9354
+ * World管理器
9355
+ *
9356
+ * 管理多个独立的World实例(可选)。
9357
+ */
9358
+ private _worldManager;
9337
9359
  /**
9338
9360
  * 插件管理器
9339
9361
  *