跳至主要內容

Class: bundle_manage_base

muzzik大约 2 分钟

index / bundle_ / bundle_manage_base

Class: bundle_manage_base

bundle_.bundle_manage_base

bundle 管理器基类

Remarks

注意生命周期函数 open、close 会自动执行父类函数再执行子类函数,不必手动 super.xxxopen in new window 调用

Implements

  • follow_release_object

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new bundle_manage_base()

Defined in

assets/@framework/resources/mk_bundle.ts:557open in new window

Properties

name_s

Abstract name_s: string

bundle 名

Defined in

assets/@framework/resources/mk_bundle.ts:592open in new window


event

Abstract event: event_target<any>

事件对象

Defined in

assets/@framework/resources/mk_bundle.ts:594open in new window


valid_b

valid_b: boolean = false

管理器有效状态

Defined in

assets/@framework/resources/mk_bundle.ts:596open in new window


node_pool_tab

node_pool_tab: Record<string, NodePool>

节点池表

Defined in

assets/@framework/resources/mk_bundle.ts:598open in new window


network

Optional network: base<codec_base>

网络对象

Defined in

assets/@framework/resources/mk_bundle.ts:600open in new window


data

Optional data: data_sharer<any>

数据获取器

Defined in

assets/@framework/resources/mk_bundle.ts:602open in new window


_release_manage

Protected _release_manage: release

释放管理器

Defined in

assets/@framework/resources/mk_bundle.ts:605open in new window

Methods

init

Optional init(): void | Promise<void>

初始化

Returns

void | Promise<void>

Remarks

从其他 bundle 的场景切换到此 bundle 的场景之前调用

Defined in

assets/@framework/resources/mk_bundle.ts:612open in new window


open

open(): void | Promise<void>

打开回调

Returns

void | Promise<void>

Remarks

从其他 bundle 的场景切换到此 bundle 的场景时调用

Defined in

assets/@framework/resources/mk_bundle.ts:619open in new window


close

close(): void | Promise<void>

关闭回调

Returns

void | Promise<void>

Remarks

从此 bundle 的场景切换到其他 bundle 的场景时调用

Defined in

assets/@framework/resources/mk_bundle.ts:637open in new window


follow_release

follow_release<T>(object_): T

Type parameters

NameType
Trelease_param_type

Parameters

NameType
object_T

Returns

T

Implementation of

mk_release_.follow_release_object.follow_release

Defined in

assets/@framework/resources/mk_bundle.ts:665open in new window


cancel_release

cancel_release<T>(object_): T

Type parameters

NameType
Trelease_param_type

Parameters

NameType
object_T

Returns

T

Implementation of

mk_release_.follow_release_object.cancel_release

Defined in

assets/@framework/resources/mk_bundle.ts:681open in new window

📣 觉得很赞?分享给你的朋友吧!