@kkarum/framework 2.3.21 → 2.3.23
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/docs/FRAMEWORK_USAGE.md +9 -7
- package/package.json +1 -1
package/docs/FRAMEWORK_USAGE.md
CHANGED
|
@@ -45,6 +45,7 @@ export class ShopLayerController extends FW.LayerController {
|
|
|
45
45
|
- 事件绑定走 `LayerController.registerEvent()`、`cc()`、`fw()` 或 `FW.Entry.evtMgr`。
|
|
46
46
|
- 定时器走 `FW.Entry.timeMgr`。
|
|
47
47
|
- 可取消/带重试异步流程走 `FW.Entry.promiseMgr`。
|
|
48
|
+
- 所有的Layer.ts都不需要挂载到对应的节点或预制体上。
|
|
48
49
|
|
|
49
50
|
## 新增业务 Bundle
|
|
50
51
|
|
|
@@ -52,11 +53,12 @@ export class ShopLayerController extends FW.LayerController {
|
|
|
52
53
|
|
|
53
54
|
```text
|
|
54
55
|
assets/<bundle>/
|
|
55
|
-
config/<Bundle>AssetConfig.ts
|
|
56
|
-
data/<Bundle>Data.ts
|
|
57
|
-
logic/<Bundle>Logic.ts
|
|
58
|
-
|
|
59
|
-
controller/<Feature>/<Feature>LayerController.ts
|
|
56
|
+
script/config/<Bundle>AssetConfig.ts
|
|
57
|
+
script/data/<Bundle>Data.ts
|
|
58
|
+
script/logic/<Bundle>Logic.ts
|
|
59
|
+
script/<Bundle>Registry.ts
|
|
60
|
+
script/controller/<Feature>/<Feature>LayerController.ts
|
|
61
|
+
script/layer/<Feature>/<Feature>Layer.ts
|
|
60
62
|
res/layer/<Feature>Layer.prefab
|
|
61
63
|
```
|
|
62
64
|
|
|
@@ -136,7 +138,7 @@ export class ShopData extends FW.Data {
|
|
|
136
138
|
|
|
137
139
|
```ts
|
|
138
140
|
export class ShopAssetConfig extends FW.AssetConfig {
|
|
139
|
-
preLoad
|
|
141
|
+
preLoad = {
|
|
140
142
|
prefab: {
|
|
141
143
|
ShopLayer: {
|
|
142
144
|
bundle: "shop",
|
|
@@ -148,7 +150,7 @@ export class ShopAssetConfig extends FW.AssetConfig {
|
|
|
148
150
|
},
|
|
149
151
|
};
|
|
150
152
|
|
|
151
|
-
demandLoad
|
|
153
|
+
demandLoad = {
|
|
152
154
|
texture: {
|
|
153
155
|
IconCoin: {
|
|
154
156
|
bundle: "shop",
|