4995eafe-ba48-44b5-b885-01f59d79f109.js.map 3.31 KB
{"version":3,"sources":["assets/script/avg/model/PlotModel.ts"],"names":[],"mappings":";;;;;;;AAKA,IAAkB,YAOjB;AAPD,WAAkB,YAAY;IAC1B,+CAAQ,CAAA;IACR,iDAAS,CAAA;IACT,iDAAS,CAAA;IACT,iDAAS,CAAA;IACT,mDAAU,CAAA;IACV,iDAAS,CAAA;AACb,CAAC,EAPiB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAO7B;AAmCD,IAAkB,YAGjB;AAHD,WAAkB,YAAY;IAC1B,yDAAa,CAAA;IACb,mDAAU,CAAA;AACd,CAAC,EAHiB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAG7B;AAgCD,IAAkB,aAIjB;AAJD,WAAkB,aAAa;IAC3B,gDAAQ,CAAA;IACR,oEAAkB,CAAA;IAClB,0EAAsB,CAAA;AAC1B,CAAC,EAJiB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAI9B;AA8BD,+DAA+D;AAC/D,iDAAiD;AACjD,IAAI","file":"","sourceRoot":"/","sourcesContent":["import { RichTextNode } from \"./RichTextModel\";\nimport { ConditionExpression } from \"./ConditionModel\";\nimport { DeepReadonly, DeepReadonlyArray } from \"simba-utils\";\nimport { Actions } from \"./ActionModel\";\n\nexport const enum SentenceType {\n    TEXT = 1,\n    AUDIO = 2,\n    VIDEO = 3,\n    IMAGE = 4,\n    SELECT = 5,\n    EMPTY = 6\n}\n\nexport interface SentenceEmptyContent {\n    type: SentenceType.EMPTY;\n}\n\nexport interface SentenceTextContent {\n    type: SentenceType.TEXT;\n    value: RichTextNode[];\n}\n\nexport interface SentenceMediaContent {\n    type: SentenceType.AUDIO | SentenceType.VIDEO | SentenceType.IMAGE;\n    value: string;\n}\n\nexport interface SentenceSelectContent {\n    type: SentenceType.SELECT;\n    value: SentenceOption[];\n}\n\nexport interface SentenceOption {\n    summary: string;\n    content?: SentenceEmptyContent | SentenceTextContent | SentenceMediaContent;\n    enableCondition?: ConditionExpression;\n}\n\nexport type SentenceContent = SentenceEmptyContent | SentenceTextContent | SentenceMediaContent | SentenceSelectContent;\n\nexport interface Sentence {\n    content?: SentenceContent;\n    roleId: number;\n    actions: Actions;\n}\n\nexport const enum PlotJumpType {\n    Condition = 0,\n    Select = 1\n}\n\ninterface ConditionPlotJump {\n    type: PlotJumpType.Condition;\n    conditionBranches?: { condition?: ConditionExpression, toPlot: number }[];\n    toPlot: number;\n}\n\ninterface SelectPlotJump {\n    type: PlotJumpType.Select;\n    jumps: { id: string, toPlot: number }[];\n}\n\nexport interface Plot {\n    id: number;\n    chapterId: number;\n    jump: ConditionPlotJump | SelectPlotJump;\n    plotSceneType: number;\n    plotSceneTypeId: number;\n    sentences: Sentence[];\n    customData?: any;\n}\n\nexport type ReadonlyPlots = DeepReadonlyArray<Plot>;\nexport type ReadonlyPlot = DeepReadonly<Plot>\n\nexport interface Chapter {\n    id: number;\n    title: string;\n    children: number[];\n}\n\nexport const enum SpecialPlotId {\n    End = -1,\n    ToBeContinued = -2,\n    CustomPlotStart = -100\n}\n\nexport interface Props {\n    id: number,    //道具id\n    type: number,  //道具类型\n    name: string,  //道具名称\n    icon: string,  //道具路径\n    des: string,   //道具描述\n    time: number, //恢复时间(秒)\n    nummax: number,//最大上限\n    value: number\n}\n\nexport interface Language {\n    id: number,\n    value: string\n}\n\nexport interface FontAssetBmp {\n    id: number,\n    value: string\n}\n\nexport interface MemoCardModel {\n    id: number,\n    date: string,\n    firstPlot: number,\n    endPlot: number\n}\n\n// export function isChapter(v: Plot | Chapter): v is Chapter {\n//     return (v as Chapter).title !== undefined;\n// }"]}