Skip to content

API > useAdvCtx

Function: useAdvCtx()

useAdvCtx(): object

Returns

config

config: AdvConfig = advConfig.value

core

core: object

core.handleAdvNode

core.handleAdvNode: (node) => Promise<undefined | true>

handle adv ast

Parameters

node: Item

core.handleCode

core.handleCode: (node) => Promise<undefined | true>

handle code block

Parameters

node: Code

core.read

core.read: (text) => Promise<void>

理解文本

Parameters

text: string

core.loadAst()

Parameters

ast: Root

functions

functions: object

nav: object

nav.go: (target) => void

go to scene

Parameters

target: string

nav.next: () => Promise<void>

下一部分

store

store: Store<"adv", _UnwrapAll<Pick<object, "status" | "ast" | "cur">>, Pick<object, "curNode">, Pick<object, never>>

tachies

tachies: object

tachies.enter

tachies.enter: (name, status) => void

Parameters

name: string

status: string= 'default'

tachies.exit

tachies.exit: (name) => void

Parameters

name: string

tachies.handle

tachies.handle: (node) => boolean

Parameters

node: Tachie

tachies.update

tachies.update: (curNode) => void

Parameters

curNode: Dialog

themeConfig

themeConfig: ComputedRef<any>

onMounted()

Source

packages/client/composables/ctx.ts:5


Generated using typedoc-plugin-markdown and TypeDoc