@kkarum/framework 2.3.22 → 2.3.24

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/README.md CHANGED
@@ -42,23 +42,23 @@ FW.Framework.addRegistry("register", RegisterRegistry);
42
42
 
43
43
  ## 主要模块
44
44
 
45
- | 模块 | 说明 |
46
- | --- | --- |
47
- | `FW.Registry` | bundle 注册表,声明 Logic/Data/Config/Sender/Handle |
48
- | `FW.FrameworkBase` | 业务基类,提供依赖获取、性能记录和错误包装 |
49
- | `FW.Logic` | 业务流程 |
50
- | `FW.Data` | 业务数据 |
51
- | `FW.AssetConfig` | 资源配置 |
52
- | `FW.LayerController` | UI Layer 控制器 |
53
- | `FW.Entry.resMgr` | bundle 和资源加载/释放 |
54
- | `FW.Entry.layerMgr` | UI Layer 打开、关闭、队列和栈 |
55
- | `FW.Entry.uiMgr` | UI 事件注册、节点查找、按钮状态 |
56
- | `FW.Entry.evtMgr` | 框架事件总线 |
57
- | `FW.Entry.timeMgr` | 游戏生命周期定时器 |
58
- | `FW.Entry.promiseMgr` | 可取消、超时、重试的 Promise |
59
- | `FW.Entry.socketMgr` | Socket 连接管理 |
60
- | `FW.Entry.objectMgr` | 对象池 |
61
- | `FW.Entry.taskMgr` | 分帧任务 |
45
+ | 模块 | 说明 |
46
+ | --------------------- | --------------------------------------------------- |
47
+ | `FW.Registry` | bundle 注册表,声明 Logic/Data/Config/Sender/Handle |
48
+ | `FW.FrameworkBase` | 业务基类,提供依赖获取、性能记录和错误包装 |
49
+ | `FW.Logic` | 业务流程 |
50
+ | `FW.Data` | 业务数据 |
51
+ | `FW.AssetConfig` | 资源配置 |
52
+ | `FW.LayerController` | UI Layer 控制器 |
53
+ | `FW.Entry.resMgr` | bundle 和资源加载/释放 |
54
+ | `FW.Entry.layerMgr` | UI Layer 打开、关闭、队列和栈 |
55
+ | `FW.Entry.uiMgr` | UI 事件注册、节点查找、按钮状态 |
56
+ | `FW.Entry.evtMgr` | 框架事件总线 |
57
+ | `FW.Entry.timeMgr` | 游戏生命周期定时器 |
58
+ | `FW.Entry.promiseMgr` | 可取消、超时、重试的 Promise |
59
+ | `FW.Entry.socketMgr` | Socket 连接管理 |
60
+ | `FW.Entry.objectMgr` | 对象池 |
61
+ | `FW.Entry.taskMgr` | 分帧任务 |
62
62
 
63
63
  ## 推荐业务结构
64
64
 
@@ -66,14 +66,13 @@ FW.Framework.addRegistry("register", RegisterRegistry);
66
66
 
67
67
  ```text
68
68
  assets/<bundle>/
69
- registry/<Bundle>Registry.ts
70
- logic/<Bundle>Logic.ts
71
- data/<Bundle>Data.ts
72
- config/<Bundle>AssetConfig.ts
73
- socket/<Bundle>Sender.ts
74
- socket/<Bundle>Handle.ts
75
- ui/<Feature>/<Feature>LayerController.ts
76
- prefab/<Feature>Layer.prefab
69
+ script/config/<Bundle>AssetConfig.ts
70
+ script/data/<Bundle>Data.ts
71
+ script/logic/<Bundle>Logic.ts
72
+ script/<Bundle>Registry.ts
73
+ script/controller/<Feature>/<Feature>LayerController.ts
74
+ script/layer/<Feature>/<Feature>Layer.ts
75
+ res/layer/<Feature>Layer.prefab
77
76
  ```
78
77
 
79
78
  命名必须保留框架后缀,例如 `ShopLogic`、`ShopData`、`ShopAssetConfig`、`ShopSender`、`ShopHandle`。框架会根据类名和 bundle 名自动推断依赖。
@@ -138,7 +138,7 @@ export class ShopData extends FW.Data {
138
138
 
139
139
  ```ts
140
140
  export class ShopAssetConfig extends FW.AssetConfig {
141
- preLoad: FW.LoadConfig = {
141
+ preLoad = {
142
142
  prefab: {
143
143
  ShopLayer: {
144
144
  bundle: "shop",
@@ -150,7 +150,7 @@ export class ShopAssetConfig extends FW.AssetConfig {
150
150
  },
151
151
  };
152
152
 
153
- demandLoad: FW.LoadConfig = {
153
+ demandLoad = {
154
154
  texture: {
155
155
  IconCoin: {
156
156
  bundle: "shop",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kkarum/framework",
3
- "version": "2.3.22",
3
+ "version": "2.3.24",
4
4
  "description": "cocoscreator 2.x mvc framework",
5
5
  "main": "index.js",
6
6
  "keywords": [