@drincs/pixi-vn-ink
Version:
Pixi'VN gives you the ability to write your own narrative using Ink
18 lines (15 loc) • 1.49 kB
text/typescript
import { PixiVNJsonStepSwitchElementType, PixiVNJsonStepSwitch } from '@drincs/pixi-vn-json';
import InkRootType from '../types/InkRootType.cjs';
import { ContainerTypeF } from '../types/parserItems/ContainerType.cjs';
import ControlCommands from '../types/parserItems/ControlCommands.cjs';
import { StandardDivert } from '../types/parserItems/Divert.cjs';
import NativeFunctions from '../types/parserItems/NativeFunctions.cjs';
import { R as RootParserItemType } from '../RootParserItemType-DV41SbdA.cjs';
import TextType from '../types/parserItems/TextType.cjs';
import { MyVariableAssignment } from '../types/parserItems/VariableAssignment.cjs';
import { ShareDataParserLabel } from './label-parser.cjs';
import '../types/parserItems/ReadCount.cjs';
import '../types/parserItems/VariableReference.cjs';
type ConditionalList = (number | ControlCommands | StandardDivert | NativeFunctions | TextType | ContainerTypeF)[];
declare function parserSwitch<T>(items: ConditionalList, addElement: (list: PixiVNJsonStepSwitchElementType<T>[], item: T | string | StandardDivert | PixiVNJsonStepSwitchElementType<T> | MyVariableAssignment, labelKey: string, paramNames: string[]) => void, addLabels: (storyItem: InkRootType | RootParserItemType, dadLabelKey: string, shareData: ShareDataParserLabel) => void, labelKey: string | undefined, shareData: ShareDataParserLabel, paramNames: string[], nestedId?: string | undefined): PixiVNJsonStepSwitch<T>;
export { type ConditionalList, parserSwitch };