@drincs/pixi-vn 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/TickerBase-CFEJHstJ.d.mts +73 -0
- package/dist/TickerBase-CjfyD6j5.d.ts +73 -0
- package/dist/classes/CanvasEvent.d.mts +24 -0
- package/dist/classes/CanvasEvent.d.ts +24 -0
- package/dist/classes/CanvasEvent.js +12 -0
- package/dist/classes/CanvasEvent.js.map +1 -0
- package/dist/classes/CanvasEvent.mjs +10 -0
- package/dist/classes/CanvasEvent.mjs.map +1 -0
- package/dist/classes/CharacterBaseModel.d.mts +90 -0
- package/dist/classes/CharacterBaseModel.d.ts +90 -0
- package/dist/classes/CharacterBaseModel.js +1529 -0
- package/dist/classes/CharacterBaseModel.js.map +1 -0
- package/dist/classes/CharacterBaseModel.mjs +1527 -0
- package/dist/classes/CharacterBaseModel.mjs.map +1 -0
- package/dist/classes/ChoiceMenuOptionLabel.d.mts +42 -0
- package/dist/classes/ChoiceMenuOptionLabel.d.ts +42 -0
- package/dist/classes/ChoiceMenuOptionLabel.js +19 -0
- package/dist/classes/ChoiceMenuOptionLabel.js.map +1 -0
- package/dist/classes/ChoiceMenuOptionLabel.mjs +17 -0
- package/dist/classes/ChoiceMenuOptionLabel.mjs.map +1 -0
- package/dist/classes/DialogueBaseModel.d.mts +58 -0
- package/dist/classes/DialogueBaseModel.d.ts +58 -0
- package/dist/classes/DialogueBaseModel.js +51 -0
- package/dist/classes/DialogueBaseModel.js.map +1 -0
- package/dist/classes/DialogueBaseModel.mjs +49 -0
- package/dist/classes/DialogueBaseModel.mjs.map +1 -0
- package/dist/classes/Label.d.mts +46 -0
- package/dist/classes/Label.d.ts +46 -0
- package/dist/classes/Label.js +41 -0
- package/dist/classes/Label.js.map +1 -0
- package/dist/classes/Label.mjs +39 -0
- package/dist/classes/Label.mjs.map +1 -0
- package/dist/classes/StoredClassModel.d.mts +55 -0
- package/dist/classes/StoredClassModel.d.ts +55 -0
- package/dist/classes/StoredClassModel.js +1470 -0
- package/dist/classes/StoredClassModel.js.map +1 -0
- package/dist/classes/StoredClassModel.mjs +1468 -0
- package/dist/classes/StoredClassModel.mjs.map +1 -0
- package/dist/classes/canvas/CanvasBase.d.mts +37 -0
- package/dist/classes/canvas/CanvasBase.d.ts +37 -0
- package/dist/classes/canvas/CanvasBase.js +23 -0
- package/dist/classes/canvas/CanvasBase.js.map +1 -0
- package/dist/classes/canvas/CanvasBase.mjs +21 -0
- package/dist/classes/canvas/CanvasBase.mjs.map +1 -0
- package/dist/classes/canvas/CanvasContainer.d.mts +30 -0
- package/dist/classes/canvas/CanvasContainer.d.ts +30 -0
- package/dist/classes/canvas/CanvasContainer.js +514 -0
- package/dist/classes/canvas/CanvasContainer.js.map +1 -0
- package/dist/classes/canvas/CanvasContainer.mjs +508 -0
- package/dist/classes/canvas/CanvasContainer.mjs.map +1 -0
- package/dist/classes/canvas/CanvasImage.d.mts +50 -0
- package/dist/classes/canvas/CanvasImage.d.ts +50 -0
- package/dist/classes/canvas/CanvasImage.js +326 -0
- package/dist/classes/canvas/CanvasImage.js.map +1 -0
- package/dist/classes/canvas/CanvasImage.mjs +324 -0
- package/dist/classes/canvas/CanvasImage.mjs.map +1 -0
- package/dist/classes/canvas/CanvasSprite.d.mts +90 -0
- package/dist/classes/canvas/CanvasSprite.d.ts +90 -0
- package/dist/classes/canvas/CanvasSprite.js +285 -0
- package/dist/classes/canvas/CanvasSprite.js.map +1 -0
- package/dist/classes/canvas/CanvasSprite.mjs +279 -0
- package/dist/classes/canvas/CanvasSprite.mjs.map +1 -0
- package/dist/classes/canvas/CanvasText.d.mts +79 -0
- package/dist/classes/canvas/CanvasText.d.ts +79 -0
- package/dist/classes/canvas/CanvasText.js +259 -0
- package/dist/classes/canvas/CanvasText.js.map +1 -0
- package/dist/classes/canvas/CanvasText.mjs +253 -0
- package/dist/classes/canvas/CanvasText.mjs.map +1 -0
- package/dist/classes/canvas/index.d.mts +15 -0
- package/dist/classes/canvas/index.d.ts +15 -0
- package/dist/classes/canvas/index.js +528 -0
- package/dist/classes/canvas/index.js.map +1 -0
- package/dist/classes/canvas/index.mjs +522 -0
- package/dist/classes/canvas/index.mjs.map +1 -0
- package/dist/classes/index.d.mts +14 -0
- package/dist/classes/index.d.ts +14 -0
- package/dist/classes/index.js +1633 -0
- package/dist/classes/index.js.map +1 -0
- package/dist/classes/index.mjs +1626 -0
- package/dist/classes/index.mjs.map +1 -0
- package/dist/classes/ticker/TickerBase.d.mts +3 -0
- package/dist/classes/ticker/TickerBase.d.ts +3 -0
- package/dist/classes/ticker/TickerBase.js +29 -0
- package/dist/classes/ticker/TickerBase.js.map +1 -0
- package/dist/classes/ticker/TickerBase.mjs +27 -0
- package/dist/classes/ticker/TickerBase.mjs.map +1 -0
- package/dist/classes/ticker/TickerFadeAlpha.d.mts +31 -0
- package/dist/classes/ticker/TickerFadeAlpha.d.ts +31 -0
- package/dist/classes/ticker/TickerFadeAlpha.js +1330 -0
- package/dist/classes/ticker/TickerFadeAlpha.js.map +1 -0
- package/dist/classes/ticker/TickerFadeAlpha.mjs +1328 -0
- package/dist/classes/ticker/TickerFadeAlpha.mjs.map +1 -0
- package/dist/classes/ticker/TickerMove.d.mts +29 -0
- package/dist/classes/ticker/TickerMove.d.ts +29 -0
- package/dist/classes/ticker/TickerMove.js +1328 -0
- package/dist/classes/ticker/TickerMove.js.map +1 -0
- package/dist/classes/ticker/TickerMove.mjs +1326 -0
- package/dist/classes/ticker/TickerMove.mjs.map +1 -0
- package/dist/classes/ticker/TickerRotate.d.mts +30 -0
- package/dist/classes/ticker/TickerRotate.d.ts +30 -0
- package/dist/classes/ticker/TickerRotate.js +1328 -0
- package/dist/classes/ticker/TickerRotate.js.map +1 -0
- package/dist/classes/ticker/TickerRotate.mjs +1326 -0
- package/dist/classes/ticker/TickerRotate.mjs.map +1 -0
- package/dist/classes/ticker/index.d.mts +10 -0
- package/dist/classes/ticker/index.d.ts +10 -0
- package/dist/classes/ticker/index.js +1330 -0
- package/dist/classes/ticker/index.js.map +1 -0
- package/dist/classes/ticker/index.mjs +1328 -0
- package/dist/classes/ticker/index.mjs.map +1 -0
- package/dist/constants.d.mts +3 -0
- package/dist/constants.d.ts +3 -0
- package/dist/constants.js +8 -0
- package/dist/constants.js.map +1 -0
- package/dist/constants.mjs +6 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/decorators/CanvasElementDecorator.d.mts +18 -0
- package/dist/decorators/CanvasElementDecorator.d.ts +18 -0
- package/dist/decorators/CanvasElementDecorator.js +540 -0
- package/dist/decorators/CanvasElementDecorator.js.map +1 -0
- package/dist/decorators/CanvasElementDecorator.mjs +533 -0
- package/dist/decorators/CanvasElementDecorator.mjs.map +1 -0
- package/dist/decorators/CharacterDecorator.d.mts +39 -0
- package/dist/decorators/CharacterDecorator.d.ts +39 -0
- package/dist/decorators/CharacterDecorator.js +37 -0
- package/dist/decorators/CharacterDecorator.js.map +1 -0
- package/dist/decorators/CharacterDecorator.mjs +32 -0
- package/dist/decorators/CharacterDecorator.mjs.map +1 -0
- package/dist/decorators/EventDecorator.d.mts +35 -0
- package/dist/decorators/EventDecorator.d.ts +35 -0
- package/dist/decorators/EventDecorator.js +52 -0
- package/dist/decorators/EventDecorator.js.map +1 -0
- package/dist/decorators/EventDecorator.mjs +45 -0
- package/dist/decorators/EventDecorator.mjs.map +1 -0
- package/dist/decorators/LabelDecorator.d.mts +32 -0
- package/dist/decorators/LabelDecorator.d.ts +32 -0
- package/dist/decorators/LabelDecorator.js +56 -0
- package/dist/decorators/LabelDecorator.js.map +1 -0
- package/dist/decorators/LabelDecorator.mjs +49 -0
- package/dist/decorators/LabelDecorator.mjs.map +1 -0
- package/dist/decorators/TickerDecorator.d.mts +27 -0
- package/dist/decorators/TickerDecorator.d.ts +27 -0
- package/dist/decorators/TickerDecorator.js +36 -0
- package/dist/decorators/TickerDecorator.js.map +1 -0
- package/dist/decorators/TickerDecorator.mjs +30 -0
- package/dist/decorators/TickerDecorator.mjs.map +1 -0
- package/dist/decorators/index.d.mts +23 -0
- package/dist/decorators/index.d.ts +23 -0
- package/dist/decorators/index.js +100 -0
- package/dist/decorators/index.js.map +1 -0
- package/dist/decorators/index.mjs +92 -0
- package/dist/decorators/index.mjs.map +1 -0
- package/dist/enums/LabelRunModeEnum.d.mts +9 -0
- package/dist/enums/LabelRunModeEnum.d.ts +9 -0
- package/dist/enums/LabelRunModeEnum.js +12 -0
- package/dist/enums/LabelRunModeEnum.js.map +1 -0
- package/dist/enums/LabelRunModeEnum.mjs +10 -0
- package/dist/enums/LabelRunModeEnum.mjs.map +1 -0
- package/dist/enums/index.d.mts +1 -0
- package/dist/enums/index.d.ts +1 -0
- package/dist/enums/index.js +12 -0
- package/dist/enums/index.js.map +1 -0
- package/dist/enums/index.mjs +10 -0
- package/dist/enums/index.mjs.map +1 -0
- package/dist/functions/CanvasUtility.d.mts +25 -0
- package/dist/functions/CanvasUtility.d.ts +25 -0
- package/dist/functions/CanvasUtility.js +510 -0
- package/dist/functions/CanvasUtility.js.map +1 -0
- package/dist/functions/CanvasUtility.mjs +506 -0
- package/dist/functions/CanvasUtility.mjs.map +1 -0
- package/dist/functions/DialogueUtility.d.mts +72 -0
- package/dist/functions/DialogueUtility.d.ts +72 -0
- package/dist/functions/DialogueUtility.js +2189 -0
- package/dist/functions/DialogueUtility.js.map +1 -0
- package/dist/functions/DialogueUtility.mjs +2177 -0
- package/dist/functions/DialogueUtility.mjs.map +1 -0
- package/dist/functions/DiffUtility.d.mts +5 -0
- package/dist/functions/DiffUtility.d.ts +5 -0
- package/dist/functions/DiffUtility.js +57 -0
- package/dist/functions/DiffUtility.js.map +1 -0
- package/dist/functions/DiffUtility.mjs +55 -0
- package/dist/functions/DiffUtility.mjs.map +1 -0
- package/dist/functions/EasterEgg.d.mts +3 -0
- package/dist/functions/EasterEgg.d.ts +3 -0
- package/dist/functions/EasterEgg.js +16 -0
- package/dist/functions/EasterEgg.js.map +1 -0
- package/dist/functions/EasterEgg.mjs +14 -0
- package/dist/functions/EasterEgg.mjs.map +1 -0
- package/dist/functions/ErrorUtility.d.mts +24 -0
- package/dist/functions/ErrorUtility.d.ts +24 -0
- package/dist/functions/ErrorUtility.js +261 -0
- package/dist/functions/ErrorUtility.js.map +1 -0
- package/dist/functions/ErrorUtility.mjs +258 -0
- package/dist/functions/ErrorUtility.mjs.map +1 -0
- package/dist/functions/ExportUtility.d.mts +8 -0
- package/dist/functions/ExportUtility.d.ts +8 -0
- package/dist/functions/ExportUtility.js +16 -0
- package/dist/functions/ExportUtility.js.map +1 -0
- package/dist/functions/ExportUtility.mjs +14 -0
- package/dist/functions/ExportUtility.mjs.map +1 -0
- package/dist/functions/FlagsUtility.d.mts +14 -0
- package/dist/functions/FlagsUtility.d.ts +14 -0
- package/dist/functions/FlagsUtility.js +1436 -0
- package/dist/functions/FlagsUtility.js.map +1 -0
- package/dist/functions/FlagsUtility.mjs +1433 -0
- package/dist/functions/FlagsUtility.mjs.map +1 -0
- package/dist/functions/GameUtility.d.mts +6 -0
- package/dist/functions/GameUtility.d.ts +6 -0
- package/dist/functions/GameUtility.js +1335 -0
- package/dist/functions/GameUtility.js.map +1 -0
- package/dist/functions/GameUtility.mjs +1333 -0
- package/dist/functions/GameUtility.mjs.map +1 -0
- package/dist/functions/ImageUtility.d.mts +51 -0
- package/dist/functions/ImageUtility.d.ts +51 -0
- package/dist/functions/ImageUtility.js +1392 -0
- package/dist/functions/ImageUtility.js.map +1 -0
- package/dist/functions/ImageUtility.mjs +1387 -0
- package/dist/functions/ImageUtility.mjs.map +1 -0
- package/dist/functions/SavesUtility.d.mts +90 -0
- package/dist/functions/SavesUtility.d.ts +90 -0
- package/dist/functions/SavesUtility.js +2081 -0
- package/dist/functions/SavesUtility.js.map +1 -0
- package/dist/functions/SavesUtility.mjs +2071 -0
- package/dist/functions/SavesUtility.mjs.map +1 -0
- package/dist/functions/StepLabelUtility.d.mts +20 -0
- package/dist/functions/StepLabelUtility.d.ts +20 -0
- package/dist/functions/StepLabelUtility.js +21 -0
- package/dist/functions/StepLabelUtility.js.map +1 -0
- package/dist/functions/StepLabelUtility.mjs +14 -0
- package/dist/functions/StepLabelUtility.mjs.map +1 -0
- package/dist/functions/TextureUtility.d.mts +11 -0
- package/dist/functions/TextureUtility.d.ts +11 -0
- package/dist/functions/TextureUtility.js +78 -0
- package/dist/functions/TextureUtility.js.map +1 -0
- package/dist/functions/TextureUtility.mjs +75 -0
- package/dist/functions/TextureUtility.mjs.map +1 -0
- package/dist/functions/TickerUtility.d.mts +13 -0
- package/dist/functions/TickerUtility.d.ts +13 -0
- package/dist/functions/TickerUtility.js +33 -0
- package/dist/functions/TickerUtility.js.map +1 -0
- package/dist/functions/TickerUtility.mjs +31 -0
- package/dist/functions/TickerUtility.mjs.map +1 -0
- package/dist/functions/index.d.mts +41 -0
- package/dist/functions/index.d.ts +41 -0
- package/dist/functions/index.js +2313 -0
- package/dist/functions/index.js.map +1 -0
- package/dist/functions/index.mjs +2289 -0
- package/dist/functions/index.mjs.map +1 -0
- package/dist/index.d.mts +63 -1773
- package/dist/index.d.ts +63 -1773
- package/dist/index.js +89 -197
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -98
- package/dist/index.mjs.map +1 -1
- package/dist/interface/IClassWithArgsHistory.d.mts +25 -0
- package/dist/interface/IClassWithArgsHistory.d.ts +25 -0
- package/dist/interface/IClassWithArgsHistory.js +4 -0
- package/dist/interface/IClassWithArgsHistory.js.map +1 -0
- package/dist/interface/IClassWithArgsHistory.mjs +3 -0
- package/dist/interface/IClassWithArgsHistory.mjs.map +1 -0
- package/dist/interface/IDialogueHistory.d.mts +33 -0
- package/dist/interface/IDialogueHistory.d.ts +33 -0
- package/dist/interface/IDialogueHistory.js +4 -0
- package/dist/interface/IDialogueHistory.js.map +1 -0
- package/dist/interface/IDialogueHistory.mjs +3 -0
- package/dist/interface/IDialogueHistory.mjs.map +1 -0
- package/dist/interface/IHistoryStep.d.mts +75 -0
- package/dist/interface/IHistoryStep.d.ts +75 -0
- package/dist/interface/IHistoryStep.js +4 -0
- package/dist/interface/IHistoryStep.js.map +1 -0
- package/dist/interface/IHistoryStep.mjs +3 -0
- package/dist/interface/IHistoryStep.mjs.map +1 -0
- package/dist/interface/IOpenedLabel.d.mts +8 -0
- package/dist/interface/IOpenedLabel.d.ts +8 -0
- package/dist/interface/IOpenedLabel.js +4 -0
- package/dist/interface/IOpenedLabel.js.map +1 -0
- package/dist/interface/IOpenedLabel.mjs +3 -0
- package/dist/interface/IOpenedLabel.mjs.map +1 -0
- package/dist/interface/ISaveData.d.mts +33 -0
- package/dist/interface/ISaveData.d.ts +33 -0
- package/dist/interface/ISaveData.js +4 -0
- package/dist/interface/ISaveData.js.map +1 -0
- package/dist/interface/ISaveData.mjs +3 -0
- package/dist/interface/ISaveData.mjs.map +1 -0
- package/dist/interface/ITicker.d.mts +3 -0
- package/dist/interface/ITicker.d.ts +3 -0
- package/dist/interface/ITicker.js +4 -0
- package/dist/interface/ITicker.js.map +1 -0
- package/dist/interface/ITicker.mjs +3 -0
- package/dist/interface/ITicker.mjs.map +1 -0
- package/dist/interface/ITickersSteps.d.mts +31 -0
- package/dist/interface/ITickersSteps.d.ts +31 -0
- package/dist/interface/ITickersSteps.js +4 -0
- package/dist/interface/ITickersSteps.js.map +1 -0
- package/dist/interface/ITickersSteps.mjs +3 -0
- package/dist/interface/ITickersSteps.mjs.map +1 -0
- package/dist/interface/TickerProgrationType.d.mts +13 -0
- package/dist/interface/TickerProgrationType.d.ts +13 -0
- package/dist/interface/TickerProgrationType.js +4 -0
- package/dist/interface/TickerProgrationType.js.map +1 -0
- package/dist/interface/TickerProgrationType.mjs +3 -0
- package/dist/interface/TickerProgrationType.mjs.map +1 -0
- package/dist/interface/canvas/ICanvasBaseMemory.d.mts +8 -0
- package/dist/interface/canvas/ICanvasBaseMemory.d.ts +8 -0
- package/dist/interface/canvas/ICanvasBaseMemory.js +4 -0
- package/dist/interface/canvas/ICanvasBaseMemory.js.map +1 -0
- package/dist/interface/canvas/ICanvasBaseMemory.mjs +3 -0
- package/dist/interface/canvas/ICanvasBaseMemory.mjs.map +1 -0
- package/dist/interface/canvas/ICanvasContainerMemory.d.mts +11 -0
- package/dist/interface/canvas/ICanvasContainerMemory.d.ts +11 -0
- package/dist/interface/canvas/ICanvasContainerMemory.js +4 -0
- package/dist/interface/canvas/ICanvasContainerMemory.js.map +1 -0
- package/dist/interface/canvas/ICanvasContainerMemory.mjs +3 -0
- package/dist/interface/canvas/ICanvasContainerMemory.mjs.map +1 -0
- package/dist/interface/canvas/ICanvasImageMemory.d.mts +14 -0
- package/dist/interface/canvas/ICanvasImageMemory.d.ts +14 -0
- package/dist/interface/canvas/ICanvasImageMemory.js +4 -0
- package/dist/interface/canvas/ICanvasImageMemory.js.map +1 -0
- package/dist/interface/canvas/ICanvasImageMemory.mjs +3 -0
- package/dist/interface/canvas/ICanvasImageMemory.mjs.map +1 -0
- package/dist/interface/canvas/ICanvasSpriteMemory.d.mts +19 -0
- package/dist/interface/canvas/ICanvasSpriteMemory.d.ts +19 -0
- package/dist/interface/canvas/ICanvasSpriteMemory.js +4 -0
- package/dist/interface/canvas/ICanvasSpriteMemory.js.map +1 -0
- package/dist/interface/canvas/ICanvasSpriteMemory.mjs +3 -0
- package/dist/interface/canvas/ICanvasSpriteMemory.mjs.map +1 -0
- package/dist/interface/canvas/ICanvasTextTextMemory.d.mts +15 -0
- package/dist/interface/canvas/ICanvasTextTextMemory.d.ts +15 -0
- package/dist/interface/canvas/ICanvasTextTextMemory.js +4 -0
- package/dist/interface/canvas/ICanvasTextTextMemory.js.map +1 -0
- package/dist/interface/canvas/ICanvasTextTextMemory.mjs +3 -0
- package/dist/interface/canvas/ICanvasTextTextMemory.mjs.map +1 -0
- package/dist/interface/canvas/ITextureMemory.d.mts +8 -0
- package/dist/interface/canvas/ITextureMemory.d.ts +8 -0
- package/dist/interface/canvas/ITextureMemory.js +4 -0
- package/dist/interface/canvas/ITextureMemory.js.map +1 -0
- package/dist/interface/canvas/ITextureMemory.mjs +3 -0
- package/dist/interface/canvas/ITextureMemory.mjs.map +1 -0
- package/dist/interface/canvas/index.d.mts +8 -0
- package/dist/interface/canvas/index.d.ts +8 -0
- package/dist/interface/canvas/index.js +4 -0
- package/dist/interface/canvas/index.js.map +1 -0
- package/dist/interface/canvas/index.mjs +3 -0
- package/dist/interface/canvas/index.mjs.map +1 -0
- package/dist/interface/export/ExportedCanvas.d.mts +19 -0
- package/dist/interface/export/ExportedCanvas.d.ts +19 -0
- package/dist/interface/export/ExportedCanvas.js +4 -0
- package/dist/interface/export/ExportedCanvas.js.map +1 -0
- package/dist/interface/export/ExportedCanvas.mjs +3 -0
- package/dist/interface/export/ExportedCanvas.mjs.map +1 -0
- package/dist/interface/export/ExportedStep.d.mts +34 -0
- package/dist/interface/export/ExportedStep.d.ts +34 -0
- package/dist/interface/export/ExportedStep.js +4 -0
- package/dist/interface/export/ExportedStep.js.map +1 -0
- package/dist/interface/export/ExportedStep.mjs +3 -0
- package/dist/interface/export/ExportedStep.mjs.map +1 -0
- package/dist/interface/export/ExportedStorage.d.mts +10 -0
- package/dist/interface/export/ExportedStorage.d.ts +10 -0
- package/dist/interface/export/ExportedStorage.js +4 -0
- package/dist/interface/export/ExportedStorage.js.map +1 -0
- package/dist/interface/export/ExportedStorage.mjs +3 -0
- package/dist/interface/export/ExportedStorage.mjs.map +1 -0
- package/dist/interface/export/index.d.mts +23 -0
- package/dist/interface/export/index.d.ts +23 -0
- package/dist/interface/export/index.js +4 -0
- package/dist/interface/export/index.js.map +1 -0
- package/dist/interface/export/index.mjs +3 -0
- package/dist/interface/export/index.mjs.map +1 -0
- package/dist/interface/index.d.mts +29 -0
- package/dist/interface/index.d.ts +29 -0
- package/dist/interface/index.js +4 -0
- package/dist/interface/index.js.map +1 -0
- package/dist/interface/index.mjs +3 -0
- package/dist/interface/index.mjs.map +1 -0
- package/dist/managers/StepManager.d.mts +210 -0
- package/dist/managers/StepManager.d.ts +210 -0
- package/dist/managers/StepManager.js +2043 -0
- package/dist/managers/StepManager.js.map +1 -0
- package/dist/managers/StepManager.mjs +2037 -0
- package/dist/managers/StepManager.mjs.map +1 -0
- package/dist/managers/StorageManager.d.mts +45 -0
- package/dist/managers/StorageManager.d.ts +45 -0
- package/dist/managers/StorageManager.js +101 -0
- package/dist/managers/StorageManager.js.map +1 -0
- package/dist/managers/StorageManager.mjs +99 -0
- package/dist/managers/StorageManager.mjs.map +1 -0
- package/dist/managers/WindowManager.d.mts +265 -0
- package/dist/managers/WindowManager.d.ts +265 -0
- package/dist/managers/WindowManager.js +1142 -0
- package/dist/managers/WindowManager.js.map +1 -0
- package/dist/managers/WindowManager.mjs +1140 -0
- package/dist/managers/WindowManager.mjs.map +1 -0
- package/dist/managers/index.d.mts +30 -0
- package/dist/managers/index.d.ts +30 -0
- package/dist/managers/index.js +2049 -0
- package/dist/managers/index.js.map +1 -0
- package/dist/managers/index.mjs +2041 -0
- package/dist/managers/index.mjs.map +1 -0
- package/dist/override/StepLabelProps.d.mts +18 -0
- package/dist/override/StepLabelProps.d.ts +18 -0
- package/dist/override/StepLabelProps.js +4 -0
- package/dist/override/StepLabelProps.js.map +1 -0
- package/dist/override/StepLabelProps.mjs +3 -0
- package/dist/override/StepLabelProps.mjs.map +1 -0
- package/dist/override/StepLabelResult.d.mts +19 -0
- package/dist/override/StepLabelResult.d.ts +19 -0
- package/dist/override/StepLabelResult.js +4 -0
- package/dist/override/StepLabelResult.js.map +1 -0
- package/dist/override/StepLabelResult.mjs +3 -0
- package/dist/override/StepLabelResult.mjs.map +1 -0
- package/dist/override/index.d.mts +2 -0
- package/dist/override/index.d.ts +2 -0
- package/dist/override/index.js +4 -0
- package/dist/override/index.js.map +1 -0
- package/dist/override/index.mjs +3 -0
- package/dist/override/index.mjs.map +1 -0
- package/dist/types/CanvasElementTagType.d.mts +3 -0
- package/dist/types/CanvasElementTagType.d.ts +3 -0
- package/dist/types/CanvasElementTagType.js +4 -0
- package/dist/types/CanvasElementTagType.js.map +1 -0
- package/dist/types/CanvasElementTagType.mjs +3 -0
- package/dist/types/CanvasElementTagType.mjs.map +1 -0
- package/dist/types/CanvasEventNamesType.d.mts +6 -0
- package/dist/types/CanvasEventNamesType.d.ts +6 -0
- package/dist/types/CanvasEventNamesType.js +4 -0
- package/dist/types/CanvasEventNamesType.js.map +1 -0
- package/dist/types/CanvasEventNamesType.mjs +3 -0
- package/dist/types/CanvasEventNamesType.mjs.map +1 -0
- package/dist/types/ChoiceMenuOptionsType.d.mts +16 -0
- package/dist/types/ChoiceMenuOptionsType.d.ts +16 -0
- package/dist/types/ChoiceMenuOptionsType.js +4 -0
- package/dist/types/ChoiceMenuOptionsType.js.map +1 -0
- package/dist/types/ChoiceMenuOptionsType.mjs +3 -0
- package/dist/types/ChoiceMenuOptionsType.mjs.map +1 -0
- package/dist/types/EventIdType.d.mts +3 -0
- package/dist/types/EventIdType.d.ts +3 -0
- package/dist/types/EventIdType.js +4 -0
- package/dist/types/EventIdType.js.map +1 -0
- package/dist/types/EventIdType.mjs +3 -0
- package/dist/types/EventIdType.mjs.map +1 -0
- package/dist/types/LabelIdType.d.mts +7 -0
- package/dist/types/LabelIdType.d.ts +7 -0
- package/dist/types/LabelIdType.js +4 -0
- package/dist/types/LabelIdType.js.map +1 -0
- package/dist/types/LabelIdType.mjs +3 -0
- package/dist/types/LabelIdType.mjs.map +1 -0
- package/dist/types/PauseType.d.mts +8 -0
- package/dist/types/PauseType.d.ts +8 -0
- package/dist/types/PauseType.js +15 -0
- package/dist/types/PauseType.js.map +1 -0
- package/dist/types/PauseType.mjs +12 -0
- package/dist/types/PauseType.mjs.map +1 -0
- package/dist/types/RepeatType.d.mts +4 -0
- package/dist/types/RepeatType.d.ts +4 -0
- package/dist/types/RepeatType.js +8 -0
- package/dist/types/RepeatType.js.map +1 -0
- package/dist/types/RepeatType.mjs +6 -0
- package/dist/types/RepeatType.mjs.map +1 -0
- package/dist/types/StepHistoryDataType.d.mts +8 -0
- package/dist/types/StepHistoryDataType.d.ts +8 -0
- package/dist/types/StepHistoryDataType.js +4 -0
- package/dist/types/StepHistoryDataType.js.map +1 -0
- package/dist/types/StepHistoryDataType.mjs +3 -0
- package/dist/types/StepHistoryDataType.mjs.map +1 -0
- package/dist/types/StepLabelType.d.mts +11 -0
- package/dist/types/StepLabelType.d.ts +11 -0
- package/dist/types/StepLabelType.js +4 -0
- package/dist/types/StepLabelType.js.map +1 -0
- package/dist/types/StepLabelType.mjs +3 -0
- package/dist/types/StepLabelType.mjs.map +1 -0
- package/dist/types/StorageElementType.d.mts +10 -0
- package/dist/types/StorageElementType.d.ts +10 -0
- package/dist/types/StorageElementType.js +4 -0
- package/dist/types/StorageElementType.js.map +1 -0
- package/dist/types/StorageElementType.mjs +3 -0
- package/dist/types/StorageElementType.mjs.map +1 -0
- package/dist/types/TickerIdType.d.mts +7 -0
- package/dist/types/TickerIdType.d.ts +7 -0
- package/dist/types/TickerIdType.js +4 -0
- package/dist/types/TickerIdType.js.map +1 -0
- package/dist/types/TickerIdType.mjs +3 -0
- package/dist/types/TickerIdType.mjs.map +1 -0
- package/dist/types/index.d.mts +13 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.js +19 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/index.mjs +15 -0
- package/dist/types/index.mjs.map +1 -0
- package/dist/types/ticker/TickerFadeAlphaProps.d.mts +26 -0
- package/dist/types/ticker/TickerFadeAlphaProps.d.ts +26 -0
- package/dist/types/ticker/TickerFadeAlphaProps.js +4 -0
- package/dist/types/ticker/TickerFadeAlphaProps.js.map +1 -0
- package/dist/types/ticker/TickerFadeAlphaProps.mjs +3 -0
- package/dist/types/ticker/TickerFadeAlphaProps.mjs.map +1 -0
- package/dist/types/ticker/TickerMoveProps.d.mts +26 -0
- package/dist/types/ticker/TickerMoveProps.d.ts +26 -0
- package/dist/types/ticker/TickerMoveProps.js +4 -0
- package/dist/types/ticker/TickerMoveProps.js.map +1 -0
- package/dist/types/ticker/TickerMoveProps.mjs +3 -0
- package/dist/types/ticker/TickerMoveProps.mjs.map +1 -0
- package/dist/types/ticker/TickerRotateProps.d.mts +24 -0
- package/dist/types/ticker/TickerRotateProps.d.ts +24 -0
- package/dist/types/ticker/TickerRotateProps.js +4 -0
- package/dist/types/ticker/TickerRotateProps.js.map +1 -0
- package/dist/types/ticker/TickerRotateProps.mjs +3 -0
- package/dist/types/ticker/TickerRotateProps.mjs.map +1 -0
- package/dist/types/ticker/index.d.mts +3 -0
- package/dist/types/ticker/index.d.ts +3 -0
- package/dist/types/ticker/index.js +4 -0
- package/dist/types/ticker/index.js.map +1 -0
- package/dist/types/ticker/index.mjs +3 -0
- package/dist/types/ticker/index.mjs.map +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import CharacterBaseModel from '../classes/CharacterBaseModel.mjs';
|
|
2
|
+
import Label from '../classes/Label.mjs';
|
|
3
|
+
import DialogueBaseModel from '../classes/DialogueBaseModel.mjs';
|
|
4
|
+
import ExportedStep from '../interface/export/ExportedStep.mjs';
|
|
5
|
+
import IHistoryStep from '../interface/IHistoryStep.mjs';
|
|
6
|
+
import IOpenedLabel from '../interface/IOpenedLabel.mjs';
|
|
7
|
+
import { StepLabelPropsType, StepLabelResultType } from '../types/StepLabelType.mjs';
|
|
8
|
+
import '../classes/StoredClassModel.mjs';
|
|
9
|
+
import '../types/StepHistoryDataType.mjs';
|
|
10
|
+
import '../override/StepLabelProps.mjs';
|
|
11
|
+
import '../override/StepLabelResult.mjs';
|
|
12
|
+
import '../types/StorageElementType.mjs';
|
|
13
|
+
import '../interface/export/ExportedCanvas.mjs';
|
|
14
|
+
import '../interface/canvas/ICanvasBaseMemory.mjs';
|
|
15
|
+
import '../interface/IClassWithArgsHistory.mjs';
|
|
16
|
+
import 'pixi.js';
|
|
17
|
+
import '../TickerBase-CFEJHstJ.mjs';
|
|
18
|
+
import '../types/TickerIdType.mjs';
|
|
19
|
+
import '../interface/export/ExportedStorage.mjs';
|
|
20
|
+
import 'deep-diff';
|
|
21
|
+
import '../classes/ChoiceMenuOptionLabel.mjs';
|
|
22
|
+
import '../enums/LabelRunModeEnum.mjs';
|
|
23
|
+
import '../types/LabelIdType.mjs';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* GameStepManager is a class that manages the steps and labels of the game.
|
|
27
|
+
*/
|
|
28
|
+
declare class GameStepManager {
|
|
29
|
+
private constructor();
|
|
30
|
+
/**
|
|
31
|
+
* stepHistory is a list of label events and steps that occurred during the progression of the steps.
|
|
32
|
+
*/
|
|
33
|
+
private static _stepsHistory;
|
|
34
|
+
static get stepsHistory(): IHistoryStep<DialogueBaseModel<CharacterBaseModel>>[];
|
|
35
|
+
private static _lastStepIndex;
|
|
36
|
+
/**
|
|
37
|
+
* lastStepIndex is the last step index that occurred during the progression of the steps. **Not is the length of the stepsHistory - 1.**
|
|
38
|
+
*/
|
|
39
|
+
static get lastStepIndex(): number;
|
|
40
|
+
/**
|
|
41
|
+
* Increase the last step index that occurred during the progression of the steps.
|
|
42
|
+
*/
|
|
43
|
+
private static increaseLastStepIndex;
|
|
44
|
+
private static _openedLabels;
|
|
45
|
+
static get openedLabels(): IOpenedLabel[];
|
|
46
|
+
/**
|
|
47
|
+
* currentLabelId is the current label id that occurred during the progression of the steps.
|
|
48
|
+
*/
|
|
49
|
+
private static get currentLabelId();
|
|
50
|
+
/**
|
|
51
|
+
* currentLabel is the current label that occurred during the progression of the steps.
|
|
52
|
+
*/
|
|
53
|
+
static get currentLabel(): Label | undefined;
|
|
54
|
+
private static get currentLabelStepIndex();
|
|
55
|
+
/**
|
|
56
|
+
* currentLabelStep is the current step that occurred during the progression of the steps. It can used to determine the game end.
|
|
57
|
+
*/
|
|
58
|
+
static get isLastGameStep(): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* lastHistoryStep is the last history step that occurred during the progression of the steps.
|
|
61
|
+
*/
|
|
62
|
+
private static get lastHistoryStep();
|
|
63
|
+
private static _originalStepData;
|
|
64
|
+
private static get originalStepData();
|
|
65
|
+
private static set originalStepData(value);
|
|
66
|
+
/**
|
|
67
|
+
* Add a label to the history.
|
|
68
|
+
* @param label The label to add to the history.
|
|
69
|
+
*/
|
|
70
|
+
private static addStepHistory;
|
|
71
|
+
/**
|
|
72
|
+
* Add a label to the history.
|
|
73
|
+
* @param label The label to add to the history.
|
|
74
|
+
*/
|
|
75
|
+
private static pushNewLabel;
|
|
76
|
+
/**
|
|
77
|
+
* Close the current label and add it to the history.
|
|
78
|
+
* @returns
|
|
79
|
+
*/
|
|
80
|
+
static closeCurrentLabel(): void;
|
|
81
|
+
/**
|
|
82
|
+
* Close all labels and add them to the history.
|
|
83
|
+
*/
|
|
84
|
+
static closeAllLabels(): void;
|
|
85
|
+
/**
|
|
86
|
+
* Increase the current step index of the current label.
|
|
87
|
+
*/
|
|
88
|
+
private static increaseCurrentStepIndex;
|
|
89
|
+
/**
|
|
90
|
+
* Execute the next step and add it to the history.
|
|
91
|
+
* @param props The props to pass to the step.
|
|
92
|
+
* @returns StepLabelResultType or undefined.
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* function nextOnClick() {
|
|
96
|
+
* setLoading(true)
|
|
97
|
+
* GameStepManager.runNextStep(yourParams)
|
|
98
|
+
* .then((result) => {
|
|
99
|
+
* setUpdate((p) => p + 1)
|
|
100
|
+
* setLoading(false)
|
|
101
|
+
* if (result) {
|
|
102
|
+
* // your code
|
|
103
|
+
* }
|
|
104
|
+
* })
|
|
105
|
+
* .catch((e) => {
|
|
106
|
+
* setLoading(false)
|
|
107
|
+
* console.error(e)
|
|
108
|
+
* })
|
|
109
|
+
* }
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
static runNextStep(props?: StepLabelPropsType): Promise<StepLabelResultType>;
|
|
113
|
+
/**
|
|
114
|
+
* Execute the current step and add it to the history.
|
|
115
|
+
* @param props The props to pass to the step.
|
|
116
|
+
* @returns StepLabelResultType or undefined.
|
|
117
|
+
*/
|
|
118
|
+
private static runCurrentStep;
|
|
119
|
+
/**
|
|
120
|
+
* Execute the label and add it to the history.
|
|
121
|
+
* Is a call function in Ren'Py.
|
|
122
|
+
* @param label The label to execute.
|
|
123
|
+
* @param props The props to pass to the label.
|
|
124
|
+
* @returns StepLabelResultType or undefined.
|
|
125
|
+
* @example
|
|
126
|
+
* ```typescript
|
|
127
|
+
* GameStepManager.callLabel(StartLabel, yourParams).then((result) => {
|
|
128
|
+
* if (result) {
|
|
129
|
+
* // your code
|
|
130
|
+
* }
|
|
131
|
+
* })
|
|
132
|
+
* ```
|
|
133
|
+
* @example
|
|
134
|
+
* ```typescript
|
|
135
|
+
* // if you use it in a step label you should return the result.
|
|
136
|
+
* return GameStepManager.callLabel(StartLabel).then((result) => {
|
|
137
|
+
* return result
|
|
138
|
+
* })
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
static callLabel(label: typeof Label | Label, props?: StepLabelPropsType): Promise<StepLabelResultType>;
|
|
142
|
+
/**
|
|
143
|
+
* Execute the label, close all labels and add them to the history.
|
|
144
|
+
* Is a jump function in Ren'Py.
|
|
145
|
+
* @param label The label to execute.
|
|
146
|
+
* @param props The props to pass to the label.
|
|
147
|
+
* @returns StepLabelResultType or undefined.
|
|
148
|
+
* @example
|
|
149
|
+
* ```typescript
|
|
150
|
+
* GameStepManager.jumpLabel(StartLabel, yourParams).then((result) => {
|
|
151
|
+
* if (result) {
|
|
152
|
+
* // your code
|
|
153
|
+
* }
|
|
154
|
+
* })
|
|
155
|
+
* ```
|
|
156
|
+
* @example
|
|
157
|
+
* ```typescript
|
|
158
|
+
* // if you use it in a step label you should return the result.
|
|
159
|
+
* return GameStepManager.jumpLabel(StartLabel).then((result) => {
|
|
160
|
+
* return result
|
|
161
|
+
* })
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
static jumpLabel(label: typeof Label | Label, props?: StepLabelPropsType): Promise<StepLabelResultType>;
|
|
165
|
+
/**
|
|
166
|
+
* Go back to the last step and add it to the history.
|
|
167
|
+
* @param navigate The navigate function.
|
|
168
|
+
* @param steps The number of steps to go back.
|
|
169
|
+
* @returns
|
|
170
|
+
* @example
|
|
171
|
+
* ```typescript
|
|
172
|
+
* export function goBack(navigate: (path: string) => void, afterBack?: () => void) {
|
|
173
|
+
* GameStepManager.goBack(navigate)
|
|
174
|
+
* afterBack && afterBack()
|
|
175
|
+
* }
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
178
|
+
static goBack(navigate: (path: string) => void, steps?: number): void;
|
|
179
|
+
private static goBackInternal;
|
|
180
|
+
/**
|
|
181
|
+
* Return true if it is possible to go back.
|
|
182
|
+
*/
|
|
183
|
+
static get canGoBack(): boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Add a label to the history.
|
|
186
|
+
*/
|
|
187
|
+
static clear(): void;
|
|
188
|
+
/**
|
|
189
|
+
* Export the history to a JSON string.
|
|
190
|
+
* @returns The history in a JSON string.
|
|
191
|
+
*/
|
|
192
|
+
static exportJson(): string;
|
|
193
|
+
/**
|
|
194
|
+
* Export the history to an object.
|
|
195
|
+
* @returns The history in an object.
|
|
196
|
+
*/
|
|
197
|
+
static export(): ExportedStep;
|
|
198
|
+
/**
|
|
199
|
+
* Import the history from a JSON string.
|
|
200
|
+
* @param dataString The history in a JSON string.
|
|
201
|
+
*/
|
|
202
|
+
static importJson(dataString: string): void;
|
|
203
|
+
/**
|
|
204
|
+
* Import the history from an object.
|
|
205
|
+
* @param data The history in an object.
|
|
206
|
+
*/
|
|
207
|
+
static import(data: object): void;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export { GameStepManager as default };
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import CharacterBaseModel from '../classes/CharacterBaseModel.js';
|
|
2
|
+
import Label from '../classes/Label.js';
|
|
3
|
+
import DialogueBaseModel from '../classes/DialogueBaseModel.js';
|
|
4
|
+
import ExportedStep from '../interface/export/ExportedStep.js';
|
|
5
|
+
import IHistoryStep from '../interface/IHistoryStep.js';
|
|
6
|
+
import IOpenedLabel from '../interface/IOpenedLabel.js';
|
|
7
|
+
import { StepLabelPropsType, StepLabelResultType } from '../types/StepLabelType.js';
|
|
8
|
+
import '../classes/StoredClassModel.js';
|
|
9
|
+
import '../types/StepHistoryDataType.js';
|
|
10
|
+
import '../override/StepLabelProps.js';
|
|
11
|
+
import '../override/StepLabelResult.js';
|
|
12
|
+
import '../types/StorageElementType.js';
|
|
13
|
+
import '../interface/export/ExportedCanvas.js';
|
|
14
|
+
import '../interface/canvas/ICanvasBaseMemory.js';
|
|
15
|
+
import '../interface/IClassWithArgsHistory.js';
|
|
16
|
+
import 'pixi.js';
|
|
17
|
+
import '../TickerBase-CjfyD6j5.js';
|
|
18
|
+
import '../types/TickerIdType.js';
|
|
19
|
+
import '../interface/export/ExportedStorage.js';
|
|
20
|
+
import 'deep-diff';
|
|
21
|
+
import '../classes/ChoiceMenuOptionLabel.js';
|
|
22
|
+
import '../enums/LabelRunModeEnum.js';
|
|
23
|
+
import '../types/LabelIdType.js';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* GameStepManager is a class that manages the steps and labels of the game.
|
|
27
|
+
*/
|
|
28
|
+
declare class GameStepManager {
|
|
29
|
+
private constructor();
|
|
30
|
+
/**
|
|
31
|
+
* stepHistory is a list of label events and steps that occurred during the progression of the steps.
|
|
32
|
+
*/
|
|
33
|
+
private static _stepsHistory;
|
|
34
|
+
static get stepsHistory(): IHistoryStep<DialogueBaseModel<CharacterBaseModel>>[];
|
|
35
|
+
private static _lastStepIndex;
|
|
36
|
+
/**
|
|
37
|
+
* lastStepIndex is the last step index that occurred during the progression of the steps. **Not is the length of the stepsHistory - 1.**
|
|
38
|
+
*/
|
|
39
|
+
static get lastStepIndex(): number;
|
|
40
|
+
/**
|
|
41
|
+
* Increase the last step index that occurred during the progression of the steps.
|
|
42
|
+
*/
|
|
43
|
+
private static increaseLastStepIndex;
|
|
44
|
+
private static _openedLabels;
|
|
45
|
+
static get openedLabels(): IOpenedLabel[];
|
|
46
|
+
/**
|
|
47
|
+
* currentLabelId is the current label id that occurred during the progression of the steps.
|
|
48
|
+
*/
|
|
49
|
+
private static get currentLabelId();
|
|
50
|
+
/**
|
|
51
|
+
* currentLabel is the current label that occurred during the progression of the steps.
|
|
52
|
+
*/
|
|
53
|
+
static get currentLabel(): Label | undefined;
|
|
54
|
+
private static get currentLabelStepIndex();
|
|
55
|
+
/**
|
|
56
|
+
* currentLabelStep is the current step that occurred during the progression of the steps. It can used to determine the game end.
|
|
57
|
+
*/
|
|
58
|
+
static get isLastGameStep(): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* lastHistoryStep is the last history step that occurred during the progression of the steps.
|
|
61
|
+
*/
|
|
62
|
+
private static get lastHistoryStep();
|
|
63
|
+
private static _originalStepData;
|
|
64
|
+
private static get originalStepData();
|
|
65
|
+
private static set originalStepData(value);
|
|
66
|
+
/**
|
|
67
|
+
* Add a label to the history.
|
|
68
|
+
* @param label The label to add to the history.
|
|
69
|
+
*/
|
|
70
|
+
private static addStepHistory;
|
|
71
|
+
/**
|
|
72
|
+
* Add a label to the history.
|
|
73
|
+
* @param label The label to add to the history.
|
|
74
|
+
*/
|
|
75
|
+
private static pushNewLabel;
|
|
76
|
+
/**
|
|
77
|
+
* Close the current label and add it to the history.
|
|
78
|
+
* @returns
|
|
79
|
+
*/
|
|
80
|
+
static closeCurrentLabel(): void;
|
|
81
|
+
/**
|
|
82
|
+
* Close all labels and add them to the history.
|
|
83
|
+
*/
|
|
84
|
+
static closeAllLabels(): void;
|
|
85
|
+
/**
|
|
86
|
+
* Increase the current step index of the current label.
|
|
87
|
+
*/
|
|
88
|
+
private static increaseCurrentStepIndex;
|
|
89
|
+
/**
|
|
90
|
+
* Execute the next step and add it to the history.
|
|
91
|
+
* @param props The props to pass to the step.
|
|
92
|
+
* @returns StepLabelResultType or undefined.
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* function nextOnClick() {
|
|
96
|
+
* setLoading(true)
|
|
97
|
+
* GameStepManager.runNextStep(yourParams)
|
|
98
|
+
* .then((result) => {
|
|
99
|
+
* setUpdate((p) => p + 1)
|
|
100
|
+
* setLoading(false)
|
|
101
|
+
* if (result) {
|
|
102
|
+
* // your code
|
|
103
|
+
* }
|
|
104
|
+
* })
|
|
105
|
+
* .catch((e) => {
|
|
106
|
+
* setLoading(false)
|
|
107
|
+
* console.error(e)
|
|
108
|
+
* })
|
|
109
|
+
* }
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
static runNextStep(props?: StepLabelPropsType): Promise<StepLabelResultType>;
|
|
113
|
+
/**
|
|
114
|
+
* Execute the current step and add it to the history.
|
|
115
|
+
* @param props The props to pass to the step.
|
|
116
|
+
* @returns StepLabelResultType or undefined.
|
|
117
|
+
*/
|
|
118
|
+
private static runCurrentStep;
|
|
119
|
+
/**
|
|
120
|
+
* Execute the label and add it to the history.
|
|
121
|
+
* Is a call function in Ren'Py.
|
|
122
|
+
* @param label The label to execute.
|
|
123
|
+
* @param props The props to pass to the label.
|
|
124
|
+
* @returns StepLabelResultType or undefined.
|
|
125
|
+
* @example
|
|
126
|
+
* ```typescript
|
|
127
|
+
* GameStepManager.callLabel(StartLabel, yourParams).then((result) => {
|
|
128
|
+
* if (result) {
|
|
129
|
+
* // your code
|
|
130
|
+
* }
|
|
131
|
+
* })
|
|
132
|
+
* ```
|
|
133
|
+
* @example
|
|
134
|
+
* ```typescript
|
|
135
|
+
* // if you use it in a step label you should return the result.
|
|
136
|
+
* return GameStepManager.callLabel(StartLabel).then((result) => {
|
|
137
|
+
* return result
|
|
138
|
+
* })
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
static callLabel(label: typeof Label | Label, props?: StepLabelPropsType): Promise<StepLabelResultType>;
|
|
142
|
+
/**
|
|
143
|
+
* Execute the label, close all labels and add them to the history.
|
|
144
|
+
* Is a jump function in Ren'Py.
|
|
145
|
+
* @param label The label to execute.
|
|
146
|
+
* @param props The props to pass to the label.
|
|
147
|
+
* @returns StepLabelResultType or undefined.
|
|
148
|
+
* @example
|
|
149
|
+
* ```typescript
|
|
150
|
+
* GameStepManager.jumpLabel(StartLabel, yourParams).then((result) => {
|
|
151
|
+
* if (result) {
|
|
152
|
+
* // your code
|
|
153
|
+
* }
|
|
154
|
+
* })
|
|
155
|
+
* ```
|
|
156
|
+
* @example
|
|
157
|
+
* ```typescript
|
|
158
|
+
* // if you use it in a step label you should return the result.
|
|
159
|
+
* return GameStepManager.jumpLabel(StartLabel).then((result) => {
|
|
160
|
+
* return result
|
|
161
|
+
* })
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
static jumpLabel(label: typeof Label | Label, props?: StepLabelPropsType): Promise<StepLabelResultType>;
|
|
165
|
+
/**
|
|
166
|
+
* Go back to the last step and add it to the history.
|
|
167
|
+
* @param navigate The navigate function.
|
|
168
|
+
* @param steps The number of steps to go back.
|
|
169
|
+
* @returns
|
|
170
|
+
* @example
|
|
171
|
+
* ```typescript
|
|
172
|
+
* export function goBack(navigate: (path: string) => void, afterBack?: () => void) {
|
|
173
|
+
* GameStepManager.goBack(navigate)
|
|
174
|
+
* afterBack && afterBack()
|
|
175
|
+
* }
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
178
|
+
static goBack(navigate: (path: string) => void, steps?: number): void;
|
|
179
|
+
private static goBackInternal;
|
|
180
|
+
/**
|
|
181
|
+
* Return true if it is possible to go back.
|
|
182
|
+
*/
|
|
183
|
+
static get canGoBack(): boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Add a label to the history.
|
|
186
|
+
*/
|
|
187
|
+
static clear(): void;
|
|
188
|
+
/**
|
|
189
|
+
* Export the history to a JSON string.
|
|
190
|
+
* @returns The history in a JSON string.
|
|
191
|
+
*/
|
|
192
|
+
static exportJson(): string;
|
|
193
|
+
/**
|
|
194
|
+
* Export the history to an object.
|
|
195
|
+
* @returns The history in an object.
|
|
196
|
+
*/
|
|
197
|
+
static export(): ExportedStep;
|
|
198
|
+
/**
|
|
199
|
+
* Import the history from a JSON string.
|
|
200
|
+
* @param dataString The history in a JSON string.
|
|
201
|
+
*/
|
|
202
|
+
static importJson(dataString: string): void;
|
|
203
|
+
/**
|
|
204
|
+
* Import the history from an object.
|
|
205
|
+
* @param data The history in an object.
|
|
206
|
+
*/
|
|
207
|
+
static import(data: object): void;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export { GameStepManager as default };
|