- useAdvCtx(): {
config: AdvConfig;
core: {
handleAdvNode: ((node) => Promise<undefined | true>);
handleCode: ((node) => Promise<undefined | true>);
read: ((text) => Promise<void>);
loadAst(ast): void;
};
functions: {};
nav: {
go: ((target) => void);
next: (() => Promise<void>);
};
store: Store<"adv", _UnwrapAll<Pick<{
ast: ShallowRef<Root>;
cur: Ref<{
background: string;
dialog: {
character: {
name: string;
status?: string;
type: "character";
};
children: ({
type: "text";
value: string;
} | {
type: "link";
value: string;
})[];
type: "dialog";
};
order: number;
tachies: Map<string, {
status: string;
}> & Omit<Map<string, {
status: string;
}>, keyof Map<any, any>>;
}>;
curNode: ComputedRef<undefined | Item>;
status: {
isEnd: ComputedRef<boolean>;
};
}, "status" | "ast" | "cur">>, Pick<{
ast: ShallowRef<Root>;
cur: Ref<{
background: string;
dialog: {
character: {
name: string;
status?: string;
type: "character";
};
children: ({
type: "text";
value: string;
} | {
type: "link";
value: string;
})[];
type: "dialog";
};
order: number;
tachies: Map<string, {
status: string;
}> & Omit<Map<string, {
status: string;
}>, keyof Map<any, any>>;
}>;
curNode: ComputedRef<undefined | Item>;
status: {
isEnd: ComputedRef<boolean>;
};
}, "curNode">, Pick<{
ast: ShallowRef<Root>;
cur: Ref<{
background: string;
dialog: {
character: {
name: string;
status?: string;
type: "character";
};
children: ({
type: "text";
value: string;
} | {
type: "link";
value: string;
})[];
type: "dialog";
};
order: number;
tachies: Map<string, {
status: string;
}> & Omit<Map<string, {
status: string;
}>, keyof Map<any, any>>;
}>;
curNode: ComputedRef<undefined | Item>;
status: {
isEnd: ComputedRef<boolean>;
};
}, never>>;
tachies: {
enter: ((name, status?) => void);
exit: ((name) => void);
handle: ((node) => boolean);
update: ((curNode) => void);
};
themeConfig: ComputedRef<any>;
onMounted(): void;
} Returns {
config: AdvConfig;
core: {
handleAdvNode: ((node) => Promise<undefined | true>);
handleCode: ((node) => Promise<undefined | true>);
read: ((text) => Promise<void>);
loadAst(ast): void;
};
functions: {};
nav: {
go: ((target) => void);
next: (() => Promise<void>);
};
store: Store<"adv", _UnwrapAll<Pick<{
ast: ShallowRef<Root>;
cur: Ref<{
background: string;
dialog: {
character: {
name: string;
status?: string;
type: "character";
};
children: ({
type: "text";
value: string;
} | {
type: "link";
value: string;
})[];
type: "dialog";
};
order: number;
tachies: Map<string, {
status: string;
}> & Omit<Map<string, {
status: string;
}>, keyof Map<any, any>>;
}>;
curNode: ComputedRef<undefined | Item>;
status: {
isEnd: ComputedRef<boolean>;
};
}, "status" | "ast" | "cur">>, Pick<{
ast: ShallowRef<Root>;
cur: Ref<{
background: string;
dialog: {
character: {
name: string;
status?: string;
type: "character";
};
children: ({
type: "text";
value: string;
} | {
type: "link";
value: string;
})[];
type: "dialog";
};
order: number;
tachies: Map<string, {
status: string;
}> & Omit<Map<string, {
status: string;
}>, keyof Map<any, any>>;
}>;
curNode: ComputedRef<undefined | Item>;
status: {
isEnd: ComputedRef<boolean>;
};
}, "curNode">, Pick<{
ast: ShallowRef<Root>;
cur: Ref<{
background: string;
dialog: {
character: {
name: string;
status?: string;
type: "character";
};
children: ({
type: "text";
value: string;
} | {
type: "link";
value: string;
})[];
type: "dialog";
};
order: number;
tachies: Map<string, {
status: string;
}> & Omit<Map<string, {
status: string;
}>, keyof Map<any, any>>;
}>;
curNode: ComputedRef<undefined | Item>;
status: {
isEnd: ComputedRef<boolean>;
};
}, never>>;
tachies: {
enter: ((name, status?) => void);
exit: ((name) => void);
handle: ((node) => boolean);
update: ((curNode) => void);
};
themeConfig: ComputedRef<any>;
onMounted(): void;
}
core: {
handleAdvNode: ((node) => Promise<undefined | true>);
handleCode: ((node) => Promise<undefined | true>);
read: ((text) => Promise<void>);
loadAst(ast): void;
}
handleAdvNode: ((node) => Promise<undefined | true>)
- (node): Promise<undefined | true>
Returns Promise<undefined | true>
handleCode: ((node) => Promise<undefined | true>)
- (node): Promise<undefined | true>
Returns Promise<undefined | true>
read: ((text) => Promise<void>)
- (text): Promise<void>
Returns Promise<void>
loadAst:function
- loadAst(ast): void
Returns void
functions: {}
nav: {
go: ((target) => void);
next: (() => Promise<void>);
}
go: ((target) => void)
- (target): void
Returns void
next: (() => Promise<void>)
- (): Promise<void>
Returns Promise<void>
store: Store<"adv", _UnwrapAll<Pick<{
ast: ShallowRef<Root>;
cur: Ref<{
background: string;
dialog: {
character: {
name: string;
status?: string;
type: "character";
};
children: ({
type: "text";
value: string;
} | {
type: "link";
value: string;
})[];
type: "dialog";
};
order: number;
tachies: Map<string, {
status: string;
}> & Omit<Map<string, {
status: string;
}>, keyof Map<any, any>>;
}>;
curNode: ComputedRef<undefined | Item>;
status: {
isEnd: ComputedRef<boolean>;
};
}, "status" | "ast" | "cur">>, Pick<{
ast: ShallowRef<Root>;
cur: Ref<{
background: string;
dialog: {
character: {
name: string;
status?: string;
type: "character";
};
children: ({
type: "text";
value: string;
} | {
type: "link";
value: string;
})[];
type: "dialog";
};
order: number;
tachies: Map<string, {
status: string;
}> & Omit<Map<string, {
status: string;
}>, keyof Map<any, any>>;
}>;
curNode: ComputedRef<undefined | Item>;
status: {
isEnd: ComputedRef<boolean>;
};
}, "curNode">, Pick<{
ast: ShallowRef<Root>;
cur: Ref<{
background: string;
dialog: {
character: {
name: string;
status?: string;
type: "character";
};
children: ({
type: "text";
value: string;
} | {
type: "link";
value: string;
})[];
type: "dialog";
};
order: number;
tachies: Map<string, {
status: string;
}> & Omit<Map<string, {
status: string;
}>, keyof Map<any, any>>;
}>;
curNode: ComputedRef<undefined | Item>;
status: {
isEnd: ComputedRef<boolean>;
};
}, never>>
tachies: {
enter: ((name, status?) => void);
exit: ((name) => void);
handle: ((node) => boolean);
update: ((curNode) => void);
}
enter: ((name, status?) => void)
- (name, status?): void
Parameters
name: string
status: string = 'default'
Returns void
exit: ((name) => void)
handle: ((node) => boolean)
- (node): boolean
Returns boolean
update: ((curNode) => void)
- (curNode): void
Returns void
themeConfig: ComputedRef<any>
onMounted:function
- onMounted(): void
Returns void
handle adv ast