@drincs/pixi-vn 0.6.7 → 0.6.9
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/README.md +17 -11
- package/dist/classes/CharacterBaseModel.js.map +1 -1
- package/dist/classes/CharacterBaseModel.mjs.map +1 -1
- package/dist/classes/ChoiceMenuOption.js.map +1 -1
- package/dist/classes/ChoiceMenuOption.mjs.map +1 -1
- package/dist/classes/LabelJson.d.mts +0 -4
- package/dist/classes/LabelJson.d.ts +0 -4
- package/dist/classes/LabelJson.js +25 -2
- package/dist/classes/LabelJson.js.map +1 -1
- package/dist/classes/LabelJson.mjs +25 -2
- package/dist/classes/LabelJson.mjs.map +1 -1
- package/dist/classes/StoredClassModel.js.map +1 -1
- package/dist/classes/StoredClassModel.mjs.map +1 -1
- package/dist/classes/index.d.mts +0 -1
- package/dist/classes/index.d.ts +0 -1
- package/dist/classes/index.js +25 -2
- package/dist/classes/index.js.map +1 -1
- package/dist/classes/index.mjs +25 -2
- package/dist/classes/index.mjs.map +1 -1
- package/dist/classes/ticker/FadeAlphaTicker.js.map +1 -1
- package/dist/classes/ticker/FadeAlphaTicker.mjs.map +1 -1
- package/dist/classes/ticker/MoveTicker.js.map +1 -1
- package/dist/classes/ticker/MoveTicker.mjs.map +1 -1
- package/dist/classes/ticker/RotateTicker.js.map +1 -1
- package/dist/classes/ticker/RotateTicker.mjs.map +1 -1
- package/dist/classes/ticker/ZoomTicker.js.map +1 -1
- package/dist/classes/ticker/ZoomTicker.mjs.map +1 -1
- package/dist/classes/ticker/index.js.map +1 -1
- package/dist/classes/ticker/index.mjs.map +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/constants.mjs.map +1 -1
- package/dist/decorators/LabelDecorator.d.mts +0 -3
- package/dist/decorators/LabelDecorator.d.ts +0 -3
- package/dist/decorators/LabelDecorator.js.map +1 -1
- package/dist/decorators/LabelDecorator.mjs.map +1 -1
- package/dist/decorators/index.d.mts +0 -3
- package/dist/decorators/index.d.ts +0 -3
- package/dist/decorators/index.js.map +1 -1
- package/dist/decorators/index.mjs.map +1 -1
- package/dist/functions/DialogueUtility.js +13 -0
- package/dist/functions/DialogueUtility.js.map +1 -1
- package/dist/functions/DialogueUtility.mjs +13 -0
- package/dist/functions/DialogueUtility.mjs.map +1 -1
- package/dist/functions/FlagsUtility.js.map +1 -1
- package/dist/functions/FlagsUtility.mjs.map +1 -1
- package/dist/functions/GameUtility.js.map +1 -1
- package/dist/functions/GameUtility.mjs.map +1 -1
- package/dist/functions/ImageUtility.js.map +1 -1
- package/dist/functions/ImageUtility.mjs.map +1 -1
- package/dist/functions/Importer.d.mts +0 -9
- package/dist/functions/Importer.d.ts +0 -9
- package/dist/functions/Importer.js +25 -2
- package/dist/functions/Importer.js.map +1 -1
- package/dist/functions/Importer.mjs +25 -2
- package/dist/functions/Importer.mjs.map +1 -1
- package/dist/functions/SavesUtility.js +14 -1
- package/dist/functions/SavesUtility.js.map +1 -1
- package/dist/functions/SavesUtility.mjs +14 -1
- package/dist/functions/SavesUtility.mjs.map +1 -1
- package/dist/functions/index.js +26 -3
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/index.mjs +26 -3
- package/dist/functions/index.mjs.map +1 -1
- package/dist/index.js +26 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -3
- package/dist/index.mjs.map +1 -1
- package/dist/interface/IHistoryStep.d.mts +1 -1
- package/dist/interface/IHistoryStep.d.ts +1 -1
- package/dist/labels/BaseCanvasElementTestLabel.js +13 -0
- package/dist/labels/BaseCanvasElementTestLabel.js.map +1 -1
- package/dist/labels/BaseCanvasElementTestLabel.mjs +13 -0
- package/dist/labels/BaseCanvasElementTestLabel.mjs.map +1 -1
- package/dist/labels/CanvasEventsTestLabel.js +13 -0
- package/dist/labels/CanvasEventsTestLabel.js.map +1 -1
- package/dist/labels/CanvasEventsTestLabel.mjs +13 -0
- package/dist/labels/CanvasEventsTestLabel.mjs.map +1 -1
- package/dist/labels/CustomTickerCanvasElementTestLabel.js +13 -0
- package/dist/labels/CustomTickerCanvasElementTestLabel.js.map +1 -1
- package/dist/labels/CustomTickerCanvasElementTestLabel.mjs +13 -0
- package/dist/labels/CustomTickerCanvasElementTestLabel.mjs.map +1 -1
- package/dist/labels/ImagesAnimationsTestLabel.js +13 -0
- package/dist/labels/ImagesAnimationsTestLabel.js.map +1 -1
- package/dist/labels/ImagesAnimationsTestLabel.mjs +13 -0
- package/dist/labels/ImagesAnimationsTestLabel.mjs.map +1 -1
- package/dist/labels/MarkdownTest.js +13 -0
- package/dist/labels/MarkdownTest.js.map +1 -1
- package/dist/labels/MarkdownTest.mjs +13 -0
- package/dist/labels/MarkdownTest.mjs.map +1 -1
- package/dist/labels/StartLabel.js +14 -1
- package/dist/labels/StartLabel.js.map +1 -1
- package/dist/labels/StartLabel.mjs +14 -1
- package/dist/labels/StartLabel.mjs.map +1 -1
- package/dist/labels/StepLabelTest.js +13 -0
- package/dist/labels/StepLabelTest.js.map +1 -1
- package/dist/labels/StepLabelTest.mjs +13 -0
- package/dist/labels/StepLabelTest.mjs.map +1 -1
- package/dist/labels/TestConstant.js.map +1 -1
- package/dist/labels/TestConstant.mjs.map +1 -1
- package/dist/labels/index.js +14 -1
- package/dist/labels/index.js.map +1 -1
- package/dist/labels/index.mjs +14 -1
- package/dist/labels/index.mjs.map +1 -1
- package/dist/managers/StepManager.d.mts +12 -2
- package/dist/managers/StepManager.d.ts +12 -2
- package/dist/managers/StepManager.js +13 -0
- package/dist/managers/StepManager.js.map +1 -1
- package/dist/managers/StepManager.mjs +13 -0
- package/dist/managers/StepManager.mjs.map +1 -1
- package/dist/managers/WindowManager.js.map +1 -1
- package/dist/managers/WindowManager.mjs.map +1 -1
- package/dist/managers/index.js +13 -0
- package/dist/managers/index.js.map +1 -1
- package/dist/managers/index.mjs +13 -0
- package/dist/managers/index.mjs.map +1 -1
- package/dist/types/LabelJsonType.d.mts +0 -9
- package/dist/types/LabelJsonType.d.ts +0 -9
- package/dist/types/StepLabelJsonType.d.mts +48 -14
- package/dist/types/StepLabelJsonType.d.ts +48 -14
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ChoiceMenuOptionClose } from '../classes/ChoiceMenuOption.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import { LabelIdType } from '../types/LabelIdType.mjs';
|
|
3
|
+
import { StepLabelPropsType, StepLabelResultType, StepLabelType } from '../types/StepLabelType.mjs';
|
|
3
4
|
import CharacterBaseModel from '../classes/CharacterBaseModel.mjs';
|
|
4
5
|
import DialogueBaseModel from '../classes/DialogueBaseModel.mjs';
|
|
5
6
|
import Label from '../classes/Label.mjs';
|
|
6
7
|
import IHistoryStep from '../interface/IHistoryStep.mjs';
|
|
7
8
|
import IOpenedLabel from '../interface/IOpenedLabel.mjs';
|
|
8
9
|
import ExportedStep from '../interface/export/ExportedStep.mjs';
|
|
9
|
-
import { LabelIdType } from '../types/LabelIdType.mjs';
|
|
10
10
|
import '../types/StorageElementType.mjs';
|
|
11
11
|
import '../types/CloseType.mjs';
|
|
12
12
|
import '../types/LabelRunModeType.mjs';
|
|
@@ -225,6 +225,16 @@ declare class GameStepManager {
|
|
|
225
225
|
* @param data The history in an object.
|
|
226
226
|
*/
|
|
227
227
|
static import(data: object): Promise<void>;
|
|
228
|
+
/**
|
|
229
|
+
* Function to be executed at the end of the game. It should be set in the game initialization.
|
|
230
|
+
* @example
|
|
231
|
+
* ```typescript
|
|
232
|
+
* GameStepManager.gameEnd = async (props) => {
|
|
233
|
+
* props.navigate("/end")
|
|
234
|
+
* }
|
|
235
|
+
* ```
|
|
236
|
+
*/
|
|
237
|
+
static gameEnd: StepLabelType | undefined;
|
|
228
238
|
}
|
|
229
239
|
|
|
230
240
|
export { GameStepManager as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ChoiceMenuOptionClose } from '../classes/ChoiceMenuOption.js';
|
|
2
|
-
import {
|
|
2
|
+
import { LabelIdType } from '../types/LabelIdType.js';
|
|
3
|
+
import { StepLabelPropsType, StepLabelResultType, StepLabelType } from '../types/StepLabelType.js';
|
|
3
4
|
import CharacterBaseModel from '../classes/CharacterBaseModel.js';
|
|
4
5
|
import DialogueBaseModel from '../classes/DialogueBaseModel.js';
|
|
5
6
|
import Label from '../classes/Label.js';
|
|
6
7
|
import IHistoryStep from '../interface/IHistoryStep.js';
|
|
7
8
|
import IOpenedLabel from '../interface/IOpenedLabel.js';
|
|
8
9
|
import ExportedStep from '../interface/export/ExportedStep.js';
|
|
9
|
-
import { LabelIdType } from '../types/LabelIdType.js';
|
|
10
10
|
import '../types/StorageElementType.js';
|
|
11
11
|
import '../types/CloseType.js';
|
|
12
12
|
import '../types/LabelRunModeType.js';
|
|
@@ -225,6 +225,16 @@ declare class GameStepManager {
|
|
|
225
225
|
* @param data The history in an object.
|
|
226
226
|
*/
|
|
227
227
|
static import(data: object): Promise<void>;
|
|
228
|
+
/**
|
|
229
|
+
* Function to be executed at the end of the game. It should be set in the game initialization.
|
|
230
|
+
* @example
|
|
231
|
+
* ```typescript
|
|
232
|
+
* GameStepManager.gameEnd = async (props) => {
|
|
233
|
+
* props.navigate("/end")
|
|
234
|
+
* }
|
|
235
|
+
* ```
|
|
236
|
+
*/
|
|
237
|
+
static gameEnd: StepLabelType | undefined;
|
|
228
238
|
}
|
|
229
239
|
|
|
230
240
|
export { GameStepManager as default };
|
|
@@ -2264,6 +2264,9 @@ var _GameStepManager = class _GameStepManager {
|
|
|
2264
2264
|
return yield _GameStepManager.goNext(props, choiseMade);
|
|
2265
2265
|
} else {
|
|
2266
2266
|
_GameStepManager.restorLastLabelList();
|
|
2267
|
+
if (_GameStepManager.gameEnd) {
|
|
2268
|
+
return yield _GameStepManager.gameEnd(props);
|
|
2269
|
+
}
|
|
2267
2270
|
console.error("[Pixi'VN] The end of the game is not managed, so the game is blocked. Read this documentation to know how to manage the end of the game: https://pixi-vn.web.app/start/labels.html#how-manage-the-end-of-the-game");
|
|
2268
2271
|
return;
|
|
2269
2272
|
}
|
|
@@ -2620,6 +2623,16 @@ _GameStepManager._stepsHistory = [];
|
|
|
2620
2623
|
_GameStepManager._lastStepIndex = 0;
|
|
2621
2624
|
_GameStepManager._openedLabels = [];
|
|
2622
2625
|
_GameStepManager._originalStepData = void 0;
|
|
2626
|
+
/**
|
|
2627
|
+
* Function to be executed at the end of the game. It should be set in the game initialization.
|
|
2628
|
+
* @example
|
|
2629
|
+
* ```typescript
|
|
2630
|
+
* GameStepManager.gameEnd = async (props) => {
|
|
2631
|
+
* props.navigate("/end")
|
|
2632
|
+
* }
|
|
2633
|
+
* ```
|
|
2634
|
+
*/
|
|
2635
|
+
_GameStepManager.gameEnd = void 0;
|
|
2623
2636
|
var GameStepManager = _GameStepManager;
|
|
2624
2637
|
|
|
2625
2638
|
module.exports = GameStepManager;
|