@ives_xxz/framework 1.2.16 → 1.2.18
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/FW.d.ts +5 -0
- package/manager/FWLayerManager.ts +1 -0
- package/package.json +1 -1
package/FW.d.ts
CHANGED
|
@@ -244,6 +244,10 @@ declare namespace FW {
|
|
|
244
244
|
* 关闭连接
|
|
245
245
|
*/
|
|
246
246
|
close();
|
|
247
|
+
/**
|
|
248
|
+
* 清理
|
|
249
|
+
*/
|
|
250
|
+
clear();
|
|
247
251
|
/**
|
|
248
252
|
* 暂停消息处理
|
|
249
253
|
*/
|
|
@@ -960,6 +964,7 @@ declare namespace FW {
|
|
|
960
964
|
/** 是否允许重复打开 */
|
|
961
965
|
isRepeatOpen: boolean;
|
|
962
966
|
initialize?();
|
|
967
|
+
destroy?();
|
|
963
968
|
/** 生命周期函数 */
|
|
964
969
|
onInit?(...args: any);
|
|
965
970
|
onLoad?();
|
|
@@ -391,6 +391,7 @@ export class FWLayerManager extends FWManager implements FW.LayerManager {
|
|
|
391
391
|
|
|
392
392
|
if (cc.isValid(ctr.layer?.node)) {
|
|
393
393
|
ctr.layer.node.destroy?.();
|
|
394
|
+
ctr.destroy?.();
|
|
394
395
|
ctr.onClose?.();
|
|
395
396
|
if (ctr.autoRelease) {
|
|
396
397
|
FW.Entry.resMgr.releaseAsset(ctr.layerData.layerAssetProperty);
|