@kkarum/framework 2.3.25 → 2.3.27

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.
Files changed (2) hide show
  1. package/README.md +6 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -9,6 +9,7 @@ Codex / AI 工具生成本项目业务代码时必须遵守:
9
9
  - 默认不要在业务层调用 `invoke()`,除非用户明确要求。
10
10
  - 新增业务 bundle 必须提供 `FW.Registry` 注册表,并在文件末尾调用 `FW.Framework.addRegistry()`;`bundleName` 和 `addRegistry()` 的 key 必须一致,统一使用小写 bundle 名。
11
11
  - 不需要require对应的Registry
12
+ - Layer脚本不需要挂载到任何节点
12
13
 
13
14
  Registry 示例:
14
15
 
@@ -71,9 +72,9 @@ assets/<bundle>/
71
72
  script/data/<Bundle>Data.ts
72
73
  script/logic/<Bundle>Logic.ts
73
74
  script/<Bundle>Registry.ts
74
- script/controller/<Feature>/<Feature>LayerController.ts
75
- script/layer/<Feature>/<Feature>Layer.ts
76
- res/layer/<Feature>Layer.prefab
75
+ script/controller/<Feature>/<Bundle><Feature>LayerController.ts
76
+ script/layer/<Feature>/<Bundle><Feature>Layer.ts
77
+ res/prefab/layer/<Bundle><Feature>Layer.prefab
77
78
  ```
78
79
 
79
80
  命名必须保留框架后缀,例如 `ShopLogic`、`ShopData`、`ShopAssetConfig`、`ShopSender`、`ShopHandle`。框架会根据类名和 bundle 名自动推断依赖。
@@ -177,6 +178,8 @@ Codex 在本项目中新增功能时必须遵守:
177
178
  - 网络协议放 Sender/Handle。
178
179
  - 资源路径集中在 AssetConfig。
179
180
  - 事件、定时器、Promise、对象池全部使用框架 API。
181
+ - CocosCreator组件事件统一使用 `FW.Entry.uiMgr.register`注册
182
+ - 自定义事件统一使用 `FW.Entry.evtMgr.register`
180
183
 
181
184
  ## 详细文档
182
185
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kkarum/framework",
3
- "version": "2.3.25",
3
+ "version": "2.3.27",
4
4
  "description": "cocoscreator 2.x mvc framework",
5
5
  "main": "index.js",
6
6
  "keywords": [