跳至主要內容

Class: guide_step_base<CT>

muzzik大约 1 分钟

index / guide_step_base

Class: guide_step_base<CT>

引导步骤基类

Type parameters

NameType
CTextends Record<string, operate_cell> = any

Hierarchy

  • Component

    guide_step_base

Table of contents

Properties

Methods

Properties

step_n

Abstract step_n: number

步骤序号

Defined in

assets/@framework/guide/mk_guide_step_base.ts:15open in new window


scene_s

Optional scene_s: string

所属场景

Remarks

格式:bundle.scene

Defined in

assets/@framework/guide/mk_guide_step_base.ts:21open in new window


guide_manage

guide_manage: guide_manage

引导管理器

Defined in

assets/@framework/guide/mk_guide_step_base.ts:23open in new window


operate_ss

operate_ss: Exclude<keyof CT, symbol>[] = []

操作键列表

Defined in

assets/@framework/guide/mk_guide_step_base.ts:25open in new window


operate_tab

operate_tab: { [k in string | number | symbol]: undefined | ReturnType<Awaited<CT[k]["load"]>> }

操作表返回值

Defined in

assets/@framework/guide/mk_guide_step_base.ts:27open in new window


init_data

init_data: any

初始化数据

Defined in

assets/@framework/guide/mk_guide_step_base.ts:29open in new window


step_update_data

step_update_data: any

步骤更新返回数据

Defined in

assets/@framework/guide/mk_guide_step_base.ts:31open in new window


describe_s

Optional describe_s: string

步骤描述

Remarks

用于日志打印

Defined in

assets/@framework/guide/mk_guide_step_base.ts:37open in new window


next_step_ns

Optional next_step_ns: number[]

下个步骤

Remarks

  • length == 1:预加载及 this._next 跳转

  • length > 1:预加载

Defined in

assets/@framework/guide/mk_guide_step_base.ts:46open in new window

Methods

pre_load

Optional pre_load(): void | Promise<void>

预加载

Returns

void | Promise<void>

Remarks

上个步骤 load 后执行

Defined in

assets/@framework/guide/mk_guide_step_base.ts:53open in new window


load

Abstract load(jump_b_): void | Promise<void>

加载

Parameters

NameTypeDescription
jump_b_boolean跳转状态

Returns

void | Promise<void>

Remarks

进入当前步骤

Defined in

assets/@framework/guide/mk_guide_step_base.ts:61open in new window


unload

Optional unload(): void | Promise<void>

卸载

Returns

void | Promise<void>

Remarks

退出当前步骤

Defined in

assets/@framework/guide/mk_guide_step_base.ts:68open in new window


_next

Protected _next(init_data_?): void

跳转到下个步骤

Parameters

NameTypeDescription
init_data_?any下个步骤初始化数据

Returns

void

Defined in

assets/@framework/guide/mk_guide_step_base.ts:75open in new window

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