@esengine/ecs-framework 2.2.16 → 2.2.17

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.16
2
+ * @esengine/ecs-framework v2.2.17
3
3
  * TypeScript definitions
4
4
  */
5
5
  /**
@@ -5672,6 +5672,12 @@ declare abstract class EntitySystem implements ISystemBase, IService {
5672
5672
  * 当Scene中的实体发生变化时调用
5673
5673
  */
5674
5674
  clearEntityCache(): void;
5675
+ /**
5676
+ * 完全重置实体跟踪状态
5677
+ * 清除所有缓存和跟踪的实体,强制下次 update 时重新扫描所有实体并触发 onAdded
5678
+ * 用于场景重载/预览重置等场景
5679
+ */
5680
+ resetEntityTracking(): void;
5675
5681
  /**
5676
5682
  * 重置系统状态
5677
5683
  *