UNPKG

@drincs/pixi-vn-json

Version:

Pixi'VN can be integrated with JSON files to create a visual novel.

42 lines (38 loc) 3.32 kB
import { w as PixiVNJsonLabelStep, n as PixiVNJsonValueSet, a as PixiVNJsonIfElse } from './PixiVNJsonLabelStep-B335RwgE.js'; export { x as PixiVNJsonAnimateBase, y as PixiVNJsonAnimateSequence, t as PixiVNJsonArithmeticOperations, z as PixiVNJsonArithmeticOperationsArithmetic, A as PixiVNJsonArithmeticOperationsArithmeticSingle, B as PixiVNJsonCanvas, r as PixiVNJsonCanvasAnimate, C as PixiVNJsonCanvasEdit, q as PixiVNJsonCanvasEffect, i as PixiVNJsonCanvasImageContainerShow, d as PixiVNJsonCanvasImageVideoShow, f as PixiVNJsonCanvasRemove, D as PixiVNJsonCanvasShow, k as PixiVNJsonCanvasTextShow, E as PixiVNJsonChoice, F as PixiVNJsonChoiceGet, G as PixiVNJsonChoices, H as PixiVNJsonComparation, I as PixiVNJsonComparationOperatorsType, J as PixiVNJsonConditionalOperation, K as PixiVNJsonConditionalResultToCombine, v as PixiVNJsonConditionalStatements, u as PixiVNJsonConditions, L as PixiVNJsonDialog, M as PixiVNJsonDialogText, N as PixiVNJsonDialogue, O as PixiVNJsonFunction, j as PixiVNJsonImageContainerEdit, e as PixiVNJsonImageEdit, Q as PixiVNJsonInputRequest, R as PixiVNJsonLabelGet, S as PixiVNJsonLabelToOpen, T as PixiVNJsonLogicGet, U as PixiVNJsonMediaTransiotions, p as PixiVNJsonNarration, o as PixiVNJsonOnlyStorageSet, P as PixiVNJsonOperation, b as PixiVNJsonOperationString, V as PixiVNJsonParamGet, c as PixiVNJsonSound, W as PixiVNJsonSoundEdit, X as PixiVNJsonSoundPauseResume, Y as PixiVNJsonSoundPlay, Z as PixiVNJsonSoundRemove, _ as PixiVNJsonStepSwitch, $ as PixiVNJsonStepSwitchElementType, a0 as PixiVNJsonStepSwitchElementsType, a1 as PixiVNJsonStorageGet, l as PixiVNJsonTextEdit, a2 as PixiVNJsonUnionCondition, m as PixiVNJsonUnknownEdit, s as PixiVNJsonValueGet, g as PixiVNJsonVideoEdit, h as PixiVNJsonVideoPauseResume } from './PixiVNJsonLabelStep-B335RwgE.js'; import '@drincs/pixi-vn'; import '@drincs/pixi-vn/motion'; import 'pixi.js'; /** * Collection of labels to be used in the narrative. */ type PixiVNJsonLabels = { [labelId: string]: PixiVNJsonLabelStep[]; }; /** * PixiVNJson It can be defined as a programming language to write a narrative written in json. */ interface PixiVNJson { /** * The URI of the JSON Schema that describes and validates this document. * * You can point to a specific version of the schema, for example: * - `"https://pixi-vn.web.app/schemas/1.13.0/schema.json"` — pin to a specific version * - `"https://pixi-vn.web.app/schemas/latest/schema.json"` — always use the latest version * * Most editors (VS Code, WebStorm, etc.) use this field to provide * auto-completion, hover documentation, and validation for the document. */ $schema?: string; /** * The operations to be executed before the narrative starts. * For the set storage: They will be set only if there are no variables with the same key already. * For the det tempstorage: if there are variables with the same key already, they will be overwritten. */ initialOperations?: (PixiVNJsonValueSet | PixiVNJsonIfElse<PixiVNJsonValueSet>)[]; /** * The labels to be used in the narrative. They will be added to the system */ labels?: PixiVNJsonLabels; } export { type PixiVNJson, PixiVNJsonIfElse, PixiVNJsonLabelStep, type PixiVNJsonLabels, PixiVNJsonValueSet };