@drincs/pixi-vn
Version:
Pixi'VN is a npm package that provides various features for creating visual novels.
1 lines • 4.42 kB
Source Map (JSON)
{"version":3,"sources":["../src/constants.ts"],"names":["Repeat","CANVAS_APP_GAME_LAYER_ALIAS","CANVAS_CONTAINER_ID","CANVAS_IMAGE_CONTAINER_ID","CANVAS_IMAGE_ID","CANVAS_SPRITE_ID","CANVAS_TEXT_ID","CANVAS_VIDEO_ID","GENERAL_CHANNEL","MAIN_STORAGE_KEY","TEMP_STORAGE_KEY","NARRATION_STORAGE_KEY","FLAGS_KEY","SYSTEM_RESERVED_STORAGE_KEYS"],"mappings":"AAMO,IAAMA,CAAAA,CAAqB,SAiB3B,IAAMC,CAAAA,CAA8B,gBAAA,CAE9BC,EAAsB,WAAA,CACtBC,CAAAA,CAA4B,gBAAA,CAC5BC,CAAAA,CAAkB,OAAA,CAClBC,CAAAA,CAAmB,SACnBC,CAAAA,CAAiB,MAAA,CACjBC,CAAAA,CAAkB,OAAA,CAKlBC,CAAAA,CAAkB,SAAA,CAClBC,CAAAA,CAAmB,SAAA,CACnBC,CAAAA,CAAmB,MAAA,CACnBC,CAAAA,CAAwB,WAAA,CACxBC,CAAAA,CAAY,OAAA,CAEZC,EAA+B,CAIxC,2BAAA,CAA6B,UAAA,CAI7B,sCAAA,CAAwC,uBAAA,CAIxC,+BAAA,CAAiC,iBAIjC,0CAAA,CAA4C,qBAAA,CAI5C,8BAAA,CAAgC,aAAA,CAIhC,mCAAA,CAAqC,oBAAA,CAIrC,8BAA+B,YAAA,CAI/B,sBAAA,CAAwB,WAAA,CAKxB,qDAAA,CAAuD,YAAA,CAIvD,yBAAA,CAA2B,cAAA,CAI3B,oBAAA,CAAsB,cAAA,CAKtB,8BAAA,CAAgC,eAAA,CAIhC,eAAA,CAAiB,gBACrB","file":"chunk-UIXKMF72.mjs","sourcesContent":["import type { PauseType, RepeatType } from \"./canvas\";\n\nexport { version as PIXIVN_VERSION } from \"../package.json\";\n/**\n * @deprecated\n */\nexport const Repeat: RepeatType = \"repeat\";\n/**\n * Pause the tickers for a duration.\n * @param duration Duration in seconds\n * @returns The pause object\n * @deprecated\n */\nexport function Pause(duration: number): PauseType {\n return {\n type: \"pause\",\n duration: duration,\n };\n}\n\n/**\n * Is a special alias to indicate the game layer.\n */\nexport const CANVAS_APP_GAME_LAYER_ALIAS = \"__game_layer__\";\n\nexport const CANVAS_CONTAINER_ID = \"Container\";\nexport const CANVAS_IMAGE_CONTAINER_ID = \"ImageContainer\";\nexport const CANVAS_IMAGE_ID = \"Image\";\nexport const CANVAS_SPRITE_ID = \"Sprite\";\nexport const CANVAS_TEXT_ID = \"Text\";\nexport const CANVAS_VIDEO_ID = \"Video\";\n\n/**\n * The default audio channel for sounds that don't specify one.\n */\nexport const GENERAL_CHANNEL = \"general\";\nexport const MAIN_STORAGE_KEY = \"storage\";\nexport const TEMP_STORAGE_KEY = \"temp\";\nexport const NARRATION_STORAGE_KEY = \"narration\";\nexport const FLAGS_KEY = \"flags\";\n\nexport const SYSTEM_RESERVED_STORAGE_KEYS = {\n /**\n * The key of the current dialogue memory\n */\n CURRENT_DIALOGUE_MEMORY_KEY: \"dialogue\",\n /**\n * The key of step counter of the current dialogue memory\n */\n LAST_DIALOGUE_ADDED_IN_STEP_MEMORY_KEY: \"dialogue:step_counter\",\n /**\n * The key of the current menu options memory\n */\n CURRENT_MENU_OPTIONS_MEMORY_KEY: \"choice:options\",\n /**\n * The key of the last menu options added in the step memory\n */\n LAST_MENU_OPTIONS_ADDED_IN_STEP_MEMORY_KEY: \"choice:step_counter\",\n /**\n * The key of the input memory. This value can be read by pixi-vn json importer\n */\n CURRENT_INPUT_VALUE_MEMORY_KEY: \"input:value\",\n /**\n * The key of the last input added in the step memory\n */\n LAST_INPUT_ADDED_IN_STEP_MEMORY_KEY: \"input:step_counter\",\n /**\n * The key of the current input info\n */\n CURRENT_INPUT_INFO_MEMORY_KEY: \"input:info\",\n /**\n * The key of the characters memory\n */\n CHARACTER_CATEGORY_KEY: \"character\",\n /**\n * This variable is used to add the next dialog text into the current dialog memory.\n * This value was added to introduce Ink Glue functionality https://github.com/inkle/ink/blob/master/Documentation/WritingWithInk.md#glue\n */\n ADD_NEXT_DIALOG_TEXT_INTO_THE_CURRENT_DIALOG_FLAG_KEY: \"___glue___\",\n /**\n * The key of a list of all labels that have been opened during the progression of the steps.\n */\n OPENED_LABELS_COUNTER_KEY: \"label:opened\",\n /**\n * The key of a list of all choices that have been made during the progression of the steps.\n */\n ALL_CHOICES_MADE_KEY: \"choices:made\",\n /**\n * The key of the current step times counter.\n * This value was added to introduce Ink Sequences, cycles and other alternatives https://github.com/inkle/ink/blob/master/Documentation/WritingWithInk.md#sequences-cycles-and-other-alternatives\n */\n CURRENT_STEP_TIMES_COUNTER_KEY: \"label:history\",\n /**\n * The key of the last dialogue step glued in the step memory\n */\n LAST_STEP_GLUED: \"glue:last_step\",\n};\n"]}