UNPKG

@drincs/pixi-vn

Version:

Pixi'VN is a npm package that provides various features for creating visual novels.

86 lines (83 loc) 3.45 kB
import { StorageElementType } from '../types/StorageElementType.cjs'; import ExportedStorage from '../interface/export/ExportedStorage.cjs'; import NarrationManagerInterface from '../interface/managers/NarrationManagerInterface.cjs'; import StorageManagerInterface from '../interface/managers/StorageManagerInterface.cjs'; import '@drincs/pixi-vn'; import '../types/ChoiceMenuOptionsType.cjs'; import '../classes/ChoiceMenuOption.cjs'; import '../types/LabelIdType.cjs'; import '../classes/Label.cjs'; import '../classes/LabelAbstract.cjs'; import '../types/StepLabelType.cjs'; import '../interface/LabelProps.cjs'; import '../types/CloseType.cjs'; import '../types/LabelRunModeType.cjs'; import '../types/InputInfo.cjs'; import '../interface/export/ExportedStep.cjs'; import '../interface/HistoryStep.cjs'; import 'deep-diff'; import 'microdiff'; import '../interface/export/ExportedCanvas.cjs'; import '../types/PauseTickerType.cjs'; import '../interface/canvas/memory/CanvasBaseItemMemory.cjs'; import '../interface/canvas/memory/ContainerMemory.cjs'; import 'pixi.js'; import '../types/ContainerChild.cjs'; import '../classes/canvas/CanvasBaseItem.cjs'; import '../interface/TickerHistory.cjs'; import '../types/TickerIdType.cjs'; import '../interface/TickerArgs.cjs'; import '../interface/TickersSequence.cjs'; import '../types/PauseType.cjs'; import '../types/RepeatType.cjs'; import '../interface/export/ExportedSounds.cjs'; import '../interface/SoundOptions.cjs'; import '@pixi/sound'; import '../types/SoundFilterMemory.cjs'; import '../interface/OpenedLabel.cjs'; import '../classes/Dialogue.cjs'; import '../interface/CharacterInterface.cjs'; import '../interface/NarrativeHistory.cjs'; import '../types/HistoryChoiceMenuOption.cjs'; import './StorageManagerStatic.cjs'; declare class StorageManager implements StorageManagerInterface { private readonly narration; constructor(narration: NarrationManagerInterface); get storage(): Map<string, any>; /** * @deprecated Use SYSTEM_RESERVED_STORAGE_KEYS instead */ get keysSystem(): { CURRENT_DIALOGUE_MEMORY_KEY: string; LAST_DIALOGUE_ADDED_IN_STEP_MEMORY_KEY: string; CURRENT_MENU_OPTIONS_MEMORY_KEY: string; LAST_MENU_OPTIONS_ADDED_IN_STEP_MEMORY_KEY: string; CURRENT_INPUT_VALUE_MEMORY_KEY: string; LAST_INPUT_ADDED_IN_STEP_MEMORY_KEY: string; CURRENT_INPUT_INFO_MEMORY_KEY: string; CHARACTER_CATEGORY_KEY: string; FLAGS_CATEGORY_KEY: string; ADD_NEXT_DIALOG_TEXT_INTO_THE_CURRENT_DIALOG_FLAG_KEY: string; OPENED_LABELS_COUNTER_KEY: string; ALL_CHOICES_MADE_KEY: string; CURRENT_STEP_TIMES_COUNTER_KEY: string; TEMP_STORAGE_KEY: string; TEMP_STORAGE_DEADLINES_KEY: string; }; set startingStorage(value: { [key: string]: StorageElementType; }); setVariable(key: string, value: StorageElementType): void; getVariable<T extends StorageElementType>(key: string): T | undefined; removeVariable(key: string): void; setTempVariable(key: string, value: StorageElementType): void; removeTempVariable(key: string): void; setFlag(name: string, value: boolean): void; getFlag(name: string): boolean; clear(): void; exportJson(): string; export(): ExportedStorage; importJson(dataString: string): void; import(data: ExportedStorage): void; } export { StorageManager as default };