fix(core): 修复 World cleanup 在打包环境下的兼容性问题 (#356)

- 使用 forEach 替代 spread + for...of 解构模式,避免某些打包工具转换后的兼容性问题
- 重构 World 和 WorldManager 类,提升代码质量
- 提取默认配置为常量
- 统一双语注释格式
This commit is contained in:
YHH
2025-12-27 09:51:04 +08:00
committed by GitHub
parent 0a88c6f2fc
commit ce2db4e48a
3 changed files with 529 additions and 493 deletions

View File

@@ -0,0 +1,9 @@
---
"@esengine/ecs-framework": patch
---
fix(core): 修复 World cleanup 在打包环境下的兼容性问题
- 使用 forEach 替代 spread + for...of 解构模式,避免某些打包工具(如 Cocos Creator转换后的兼容性问题
- 重构 World 和 WorldManager 类,提升代码质量
- 提取默认配置为常量,统一双语注释格式