@advjs/monorepo / @advjs/client / useAdvStore
Variable: useAdvStore
constuseAdvStore:StoreDefinition<"adv",Pick<{ast:ShallowRef<Root,Root>;cur:Ref<{background:string;dialog: {bgmSrc?:string;bgmThemeId?:string;dialogues:object[];id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };sceneId?:string;type?:"dialogues"; } | {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; }>, keyofMap<any,any>>; },CurStateType| {background:string;dialog: {bgmSrc?:string;bgmThemeId?:string;dialogues:object[];id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };sceneId?:string;type?:"dialogues"; } | {character: {name:string;status?:string;type:"character"; };children: ({type: ...;value: ...; } | {type: ...;value: ...; })[];type:"dialog"; };order:number;tachies:Map<string, {status:string; }> &Omit<Map<string, {status:string; }>, keyofMap<any,any>>; }>;curChapter:Ref<undefined|AdvChapter<AdvFlowNode>,undefined|AdvChapter<AdvFlowNode>>;curFlowNode:Ref<{id:string;name:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };src:string;type:"background"; } | {action:"enter"|"exit";enter?:string|string[];exit?:string|string[];id:string;name:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };status:string;type:"tachie"; } | {bgmSrc?:string;bgmThemeId?:string;dialogues:object[];id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };sceneId?:string;type?:"dialogues"; } | {id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };type:"end"; } | {ast?: {children: ({type: ...; } | {type: ...;value: ...; } | {data?: ...;lang?: ...;meta?: ...;position?: ...;type: ...;value: ...; } | {choices: ...;default?: ...;type: ...; } | {name: ...;status?: ...;type: ...; } | {text: ...;type: ...; } | {character: ...;children: ...;type: ...; } | {children: ...;type: ...; } | {inOrOut: ...;place: ...;time: ...;type: ...; } | {children: ...;type: ...; })[];functions:Record<string,string>;scene:Record<string,number>;type:"adv-root"; };id:string;next?:string| {chapterId:string;nodeId:string; };order?:number;prev?:string| {chapterId:string;nodeId:string; };src:string;type:"fountain"; } | {id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };type:"start"; },AdvFlowNode| {id:string;name:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };src:string;type:"background"; } | {action:"enter"|"exit";enter?:string|string[];exit?:string|string[];id:string;name:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };status:string;type:"tachie"; } | {bgmSrc?:string;bgmThemeId?:string;dialogues:object[];id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };sceneId?:string;type?:"dialogues"; } | {id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };type:"end"; } | {ast?: {children: ({type: ...; } | {type: ...;value: ...; } | {data?: ...;lang?: ...;meta?: ...;position?: ...;type: ...;value: ...; } | {choices: ...;default?: ...;type: ...; } | {name: ...;status?: ...;type: ...; } | {text: ...;type: ...; } | {character: ...;children: ...;type: ...; } | {children: ...;type: ...; } | {inOrOut: ...;place: ...;time: ...;type: ...; } | {children: ...;type: ...; })[];functions:Record<string,string>;scene:Record<string,number>;type:"adv-root"; };id:string;next?:string| {chapterId:string;nodeId:string; };order?:number;prev?:string| {chapterId:string;nodeId:string; };src:string;type:"fountain"; } | {id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };type:"start"; }>;curNode:ComputedRef<undefined|Item|AdvFlowNode>;status: {isEnd:ComputedRef<boolean>; }; },"status"|"ast"|"curFlowNode"|"curChapter"|"cur">,Pick<{ast:ShallowRef<Root,Root>;cur:Ref<{background:string;dialog: {bgmSrc?:string;bgmThemeId?:string;dialogues:object[];id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };sceneId?:string;type?:"dialogues"; } | {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; }>, keyofMap<any,any>>; },CurStateType| {background:string;dialog: {bgmSrc?:string;bgmThemeId?:string;dialogues:object[];id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };sceneId?:string;type?:"dialogues"; } | {character: {name:string;status?:string;type:"character"; };children: ({type: ...;value: ...; } | {type: ...;value: ...; })[];type:"dialog"; };order:number;tachies:Map<string, {status:string; }> &Omit<Map<string, {status:string; }>, keyofMap<any,any>>; }>;curChapter:Ref<undefined|AdvChapter<AdvFlowNode>,undefined|AdvChapter<AdvFlowNode>>;curFlowNode:Ref<{id:string;name:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };src:string;type:"background"; } | {action:"enter"|"exit";enter?:string|string[];exit?:string|string[];id:string;name:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };status:string;type:"tachie"; } | {bgmSrc?:string;bgmThemeId?:string;dialogues:object[];id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };sceneId?:string;type?:"dialogues"; } | {id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };type:"end"; } | {ast?: {children: ({type: ...; } | {type: ...;value: ...; } | {data?: ...;lang?: ...;meta?: ...;position?: ...;type: ...;value: ...; } | {choices: ...;default?: ...;type: ...; } | {name: ...;status?: ...;type: ...; } | {text: ...;type: ...; } | {character: ...;children: ...;type: ...; } | {children: ...;type: ...; } | {inOrOut: ...;place: ...;time: ...;type: ...; } | {children: ...;type: ...; })[];functions:Record<string,string>;scene:Record<string,number>;type:"adv-root"; };id:string;next?:string| {chapterId:string;nodeId:string; };order?:number;prev?:string| {chapterId:string;nodeId:string; };src:string;type:"fountain"; } | {id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };type:"start"; },AdvFlowNode| {id:string;name:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };src:string;type:"background"; } | {action:"enter"|"exit";enter?:string|string[];exit?:string|string[];id:string;name:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };status:string;type:"tachie"; } | {bgmSrc?:string;bgmThemeId?:string;dialogues:object[];id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };sceneId?:string;type?:"dialogues"; } | {id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };type:"end"; } | {ast?: {children: ({type: ...; } | {type: ...;value: ...; } | {data?: ...;lang?: ...;meta?: ...;position?: ...;type: ...;value: ...; } | {choices: ...;default?: ...;type: ...; } | {name: ...;status?: ...;type: ...; } | {text: ...;type: ...; } | {character: ...;children: ...;type: ...; } | {children: ...;type: ...; } | {inOrOut: ...;place: ...;time: ...;type: ...; } | {children: ...;type: ...; })[];functions:Record<string,string>;scene:Record<string,number>;type:"adv-root"; };id:string;next?:string| {chapterId:string;nodeId:string; };order?:number;prev?:string| {chapterId:string;nodeId:string; };src:string;type:"fountain"; } | {id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };type:"start"; }>;curNode:ComputedRef<undefined|Item|AdvFlowNode>;status: {isEnd:ComputedRef<boolean>; }; },"curNode">,Pick<{ast:ShallowRef<Root,Root>;cur:Ref<{background:string;dialog: {bgmSrc?:string;bgmThemeId?:string;dialogues:object[];id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };sceneId?:string;type?:"dialogues"; } | {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; }>, keyofMap<any,any>>; },CurStateType| {background:string;dialog: {bgmSrc?:string;bgmThemeId?:string;dialogues:object[];id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };sceneId?:string;type?:"dialogues"; } | {character: {name:string;status?:string;type:"character"; };children: ({type: ...;value: ...; } | {type: ...;value: ...; })[];type:"dialog"; };order:number;tachies:Map<string, {status:string; }> &Omit<Map<string, {status:string; }>, keyofMap<any,any>>; }>;curChapter:Ref<undefined|AdvChapter<AdvFlowNode>,undefined|AdvChapter<AdvFlowNode>>;curFlowNode:Ref<{id:string;name:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };src:string;type:"background"; } | {action:"enter"|"exit";enter?:string|string[];exit?:string|string[];id:string;name:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };status:string;type:"tachie"; } | {bgmSrc?:string;bgmThemeId?:string;dialogues:object[];id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };sceneId?:string;type?:"dialogues"; } | {id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };type:"end"; } | {ast?: {children: ({type: ...; } | {type: ...;value: ...; } | {data?: ...;lang?: ...;meta?: ...;position?: ...;type: ...;value: ...; } | {choices: ...;default?: ...;type: ...; } | {name: ...;status?: ...;type: ...; } | {text: ...;type: ...; } | {character: ...;children: ...;type: ...; } | {children: ...;type: ...; } | {inOrOut: ...;place: ...;time: ...;type: ...; } | {children: ...;type: ...; })[];functions:Record<string,string>;scene:Record<string,number>;type:"adv-root"; };id:string;next?:string| {chapterId:string;nodeId:string; };order?:number;prev?:string| {chapterId:string;nodeId:string; };src:string;type:"fountain"; } | {id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };type:"start"; },AdvFlowNode| {id:string;name:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };src:string;type:"background"; } | {action:"enter"|"exit";enter?:string|string[];exit?:string|string[];id:string;name:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };status:string;type:"tachie"; } | {bgmSrc?:string;bgmThemeId?:string;dialogues:object[];id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };sceneId?:string;type?:"dialogues"; } | {id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };type:"end"; } | {ast?: {children: ({type: ...; } | {type: ...;value: ...; } | {data?: ...;lang?: ...;meta?: ...;position?: ...;type: ...;value: ...; } | {choices: ...;default?: ...;type: ...; } | {name: ...;status?: ...;type: ...; } | {text: ...;type: ...; } | {character: ...;children: ...;type: ...; } | {children: ...;type: ...; } | {inOrOut: ...;place: ...;time: ...;type: ...; } | {children: ...;type: ...; })[];functions:Record<string,string>;scene:Record<string,number>;type:"adv-root"; };id:string;next?:string| {chapterId:string;nodeId:string; };order?:number;prev?:string| {chapterId:string;nodeId:string; };src:string;type:"fountain"; } | {id:string;next?:string| {chapterId:string;nodeId:string; };prev?:string| {chapterId:string;nodeId:string; };type:"start"; }>;curNode:ComputedRef<undefined|Item|AdvFlowNode>;status: {isEnd:ComputedRef<boolean>; }; },never>>
Defined in: packages/client/stores/useAdvStore.ts:38