@drincs/pixi-vn 0.5.2 → 0.5.4
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/classes/CharacterBaseModel.js +110 -112
- package/dist/classes/CharacterBaseModel.js.map +1 -1
- package/dist/classes/CharacterBaseModel.mjs +110 -112
- package/dist/classes/CharacterBaseModel.mjs.map +1 -1
- package/dist/classes/ChoiceMenuOption.d.mts +19 -7
- package/dist/classes/ChoiceMenuOption.d.ts +19 -7
- package/dist/classes/ChoiceMenuOption.js +1386 -7
- package/dist/classes/ChoiceMenuOption.js.map +1 -1
- package/dist/classes/ChoiceMenuOption.mjs +1386 -7
- package/dist/classes/ChoiceMenuOption.mjs.map +1 -1
- package/dist/classes/CloseLabel.d.mts +8 -3
- package/dist/classes/CloseLabel.d.ts +8 -3
- package/dist/classes/CloseLabel.js +44 -2
- package/dist/classes/CloseLabel.js.map +1 -1
- package/dist/classes/CloseLabel.mjs +41 -2
- package/dist/classes/CloseLabel.mjs.map +1 -1
- package/dist/classes/Label.d.mts +47 -21
- package/dist/classes/Label.d.ts +47 -21
- package/dist/classes/Label.js +36 -1
- package/dist/classes/Label.js.map +1 -1
- package/dist/classes/Label.mjs +36 -1
- package/dist/classes/Label.mjs.map +1 -1
- package/dist/classes/StoredClassModel.js +55 -57
- package/dist/classes/StoredClassModel.js.map +1 -1
- package/dist/classes/StoredClassModel.mjs +55 -57
- package/dist/classes/StoredClassModel.mjs.map +1 -1
- package/dist/classes/index.d.mts +2 -2
- package/dist/classes/index.d.ts +2 -2
- package/dist/classes/index.js +125 -73
- package/dist/classes/index.js.map +1 -1
- package/dist/classes/index.mjs +125 -73
- package/dist/classes/index.mjs.map +1 -1
- package/dist/classes/ticker/TickerFadeAlpha.js +27 -27
- package/dist/classes/ticker/TickerFadeAlpha.js.map +1 -1
- package/dist/classes/ticker/TickerFadeAlpha.mjs +27 -27
- package/dist/classes/ticker/TickerFadeAlpha.mjs.map +1 -1
- package/dist/classes/ticker/TickerMove.js +57 -55
- package/dist/classes/ticker/TickerMove.js.map +1 -1
- package/dist/classes/ticker/TickerMove.mjs +57 -55
- package/dist/classes/ticker/TickerMove.mjs.map +1 -1
- package/dist/classes/ticker/TickerRotate.js +57 -55
- package/dist/classes/ticker/TickerRotate.js.map +1 -1
- package/dist/classes/ticker/TickerRotate.mjs +57 -55
- package/dist/classes/ticker/TickerRotate.mjs.map +1 -1
- package/dist/classes/ticker/index.js +17 -17
- package/dist/classes/ticker/index.js.map +1 -1
- package/dist/classes/ticker/index.mjs +17 -17
- 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 +13 -20
- package/dist/decorators/LabelDecorator.d.ts +13 -20
- package/dist/decorators/LabelDecorator.js +1388 -28
- package/dist/decorators/LabelDecorator.js.map +1 -1
- package/dist/decorators/LabelDecorator.mjs +1388 -25
- package/dist/decorators/LabelDecorator.mjs.map +1 -1
- package/dist/decorators/index.d.mts +4 -4
- package/dist/decorators/index.d.ts +4 -4
- package/dist/decorators/index.js +1385 -13
- package/dist/decorators/index.js.map +1 -1
- package/dist/decorators/index.mjs +1384 -13
- package/dist/decorators/index.mjs.map +1 -1
- package/dist/functions/DialogueUtility.d.mts +7 -7
- package/dist/functions/DialogueUtility.d.ts +7 -7
- package/dist/functions/DialogueUtility.js +97 -67
- package/dist/functions/DialogueUtility.js.map +1 -1
- package/dist/functions/DialogueUtility.mjs +97 -67
- package/dist/functions/DialogueUtility.mjs.map +1 -1
- package/dist/functions/FlagsUtility.js +55 -57
- package/dist/functions/FlagsUtility.js.map +1 -1
- package/dist/functions/FlagsUtility.mjs +55 -57
- package/dist/functions/FlagsUtility.mjs.map +1 -1
- package/dist/functions/GameUtility.js +55 -57
- package/dist/functions/GameUtility.js.map +1 -1
- package/dist/functions/GameUtility.mjs +55 -57
- package/dist/functions/GameUtility.mjs.map +1 -1
- package/dist/functions/ImageUtility.js +17 -17
- package/dist/functions/ImageUtility.js.map +1 -1
- package/dist/functions/ImageUtility.mjs +17 -17
- package/dist/functions/ImageUtility.mjs.map +1 -1
- package/dist/functions/SavesUtility.d.mts +2 -2
- package/dist/functions/SavesUtility.d.ts +2 -2
- package/dist/functions/SavesUtility.js +115 -143
- package/dist/functions/SavesUtility.js.map +1 -1
- package/dist/functions/SavesUtility.mjs +115 -143
- package/dist/functions/SavesUtility.mjs.map +1 -1
- package/dist/functions/StepLabelUtility.d.mts +0 -1
- package/dist/functions/StepLabelUtility.d.ts +0 -1
- package/dist/functions/index.d.mts +4 -4
- package/dist/functions/index.d.ts +4 -4
- package/dist/functions/index.js +98 -68
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/index.mjs +98 -68
- package/dist/functions/index.mjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +361 -327
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +360 -327
- package/dist/index.mjs.map +1 -1
- package/dist/interface/{IDialogueHistory.d.mts → DialogueHistory.d.mts} +5 -5
- package/dist/interface/{IDialogueHistory.d.ts → DialogueHistory.d.ts} +5 -5
- package/dist/interface/{IDialogueHistory.js → DialogueHistory.js} +1 -1
- package/dist/interface/DialogueHistory.mjs +3 -0
- package/dist/interface/IHistoryStep.d.mts +2 -2
- package/dist/interface/IHistoryStep.d.ts +2 -2
- package/dist/interface/ISaveData.d.mts +2 -2
- package/dist/interface/ISaveData.d.ts +2 -2
- package/dist/interface/export/ExportedStep.d.mts +2 -2
- package/dist/interface/export/ExportedStep.d.ts +2 -2
- package/dist/interface/export/index.d.mts +2 -2
- package/dist/interface/export/index.d.ts +2 -2
- package/dist/interface/index.d.mts +6 -6
- package/dist/interface/index.d.ts +6 -6
- package/dist/managers/StepManager.d.mts +12 -12
- package/dist/managers/StepManager.d.ts +12 -12
- package/dist/managers/StepManager.js +55 -81
- package/dist/managers/StepManager.js.map +1 -1
- package/dist/managers/StepManager.mjs +55 -81
- package/dist/managers/StepManager.mjs.map +1 -1
- package/dist/managers/WindowManager.d.mts +1 -1
- package/dist/managers/WindowManager.d.ts +1 -1
- package/dist/managers/index.d.mts +2 -2
- package/dist/managers/index.d.ts +2 -2
- package/dist/managers/index.js +114 -142
- package/dist/managers/index.js.map +1 -1
- package/dist/managers/index.mjs +114 -142
- package/dist/managers/index.mjs.map +1 -1
- package/dist/types/ChoiceMenuOptionsType.d.mts +3 -3
- package/dist/types/ChoiceMenuOptionsType.d.ts +3 -3
- package/dist/types/StepLabelType.d.mts +2 -3
- package/dist/types/StepLabelType.d.ts +2 -3
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/interface/IDialogueHistory.mjs +0 -3
- /package/dist/interface/{IDialogueHistory.js.map → DialogueHistory.js.map} +0 -0
- /package/dist/interface/{IDialogueHistory.mjs.map → DialogueHistory.mjs.map} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { HistoryChoiceMenuOption } from '../classes/ChoiceMenuOption.mjs';
|
|
2
2
|
import DialogueBaseModel from '../classes/DialogueBaseModel.mjs';
|
|
3
3
|
import '../classes/Label.mjs';
|
|
4
|
+
import '../types/LabelIdType.mjs';
|
|
5
|
+
import '../types/StepHistoryDataType.mjs';
|
|
4
6
|
import '../types/StepLabelType.mjs';
|
|
5
7
|
import '@drincs/pixi-vn/dist/override';
|
|
6
|
-
import '../types/StorageElementType.mjs';
|
|
7
|
-
import '../types/StepHistoryDataType.mjs';
|
|
8
8
|
import '../types/CloseType.mjs';
|
|
9
9
|
import '../types/LabelRunModeType.mjs';
|
|
10
|
-
import '../types/
|
|
10
|
+
import '../types/StorageElementType.mjs';
|
|
11
11
|
import '../classes/CharacterBaseModel.mjs';
|
|
12
12
|
import '../classes/StoredClassModel.mjs';
|
|
13
13
|
|
|
14
|
-
interface
|
|
14
|
+
interface DialogueHistory<T extends DialogueBaseModel = DialogueBaseModel> {
|
|
15
15
|
/**
|
|
16
16
|
* Dialogue to be shown in the game
|
|
17
17
|
*/
|
|
@@ -30,4 +30,4 @@ interface IDialogueHistory<T extends DialogueBaseModel = DialogueBaseModel> {
|
|
|
30
30
|
stepIndex: number;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export type {
|
|
33
|
+
export type { DialogueHistory as default };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { HistoryChoiceMenuOption } from '../classes/ChoiceMenuOption.js';
|
|
2
2
|
import DialogueBaseModel from '../classes/DialogueBaseModel.js';
|
|
3
3
|
import '../classes/Label.js';
|
|
4
|
+
import '../types/LabelIdType.js';
|
|
5
|
+
import '../types/StepHistoryDataType.js';
|
|
4
6
|
import '../types/StepLabelType.js';
|
|
5
7
|
import '@drincs/pixi-vn/dist/override';
|
|
6
|
-
import '../types/StorageElementType.js';
|
|
7
|
-
import '../types/StepHistoryDataType.js';
|
|
8
8
|
import '../types/CloseType.js';
|
|
9
9
|
import '../types/LabelRunModeType.js';
|
|
10
|
-
import '../types/
|
|
10
|
+
import '../types/StorageElementType.js';
|
|
11
11
|
import '../classes/CharacterBaseModel.js';
|
|
12
12
|
import '../classes/StoredClassModel.js';
|
|
13
13
|
|
|
14
|
-
interface
|
|
14
|
+
interface DialogueHistory<T extends DialogueBaseModel = DialogueBaseModel> {
|
|
15
15
|
/**
|
|
16
16
|
* Dialogue to be shown in the game
|
|
17
17
|
*/
|
|
@@ -30,4 +30,4 @@ interface IDialogueHistory<T extends DialogueBaseModel = DialogueBaseModel> {
|
|
|
30
30
|
stepIndex: number;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export type {
|
|
33
|
+
export type { DialogueHistory as default };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import deepDiff from 'deep-diff';
|
|
2
2
|
import { IStoratedChoiceMenuOption } from '../classes/ChoiceMenuOption.mjs';
|
|
3
3
|
import DialogueBaseModel from '../classes/DialogueBaseModel.mjs';
|
|
4
|
-
import { StepHistoryDataType } from '../types/StepHistoryDataType.mjs';
|
|
5
4
|
import { LabelIdType } from '../types/LabelIdType.mjs';
|
|
5
|
+
import { StepHistoryDataType } from '../types/StepHistoryDataType.mjs';
|
|
6
6
|
import ExportedCanvas from './export/ExportedCanvas.mjs';
|
|
7
7
|
import ExportedStorage from './export/ExportedStorage.mjs';
|
|
8
8
|
import IOpenedLabel from './IOpenedLabel.mjs';
|
|
9
9
|
import '../classes/Label.mjs';
|
|
10
10
|
import '../types/StepLabelType.mjs';
|
|
11
11
|
import '@drincs/pixi-vn/dist/override';
|
|
12
|
-
import '../types/StorageElementType.mjs';
|
|
13
12
|
import '../types/CloseType.mjs';
|
|
14
13
|
import '../types/LabelRunModeType.mjs';
|
|
14
|
+
import '../types/StorageElementType.mjs';
|
|
15
15
|
import '../classes/CharacterBaseModel.mjs';
|
|
16
16
|
import '../classes/StoredClassModel.mjs';
|
|
17
17
|
import './canvas/ICanvasBaseMemory.mjs';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import deepDiff from 'deep-diff';
|
|
2
2
|
import { IStoratedChoiceMenuOption } from '../classes/ChoiceMenuOption.js';
|
|
3
3
|
import DialogueBaseModel from '../classes/DialogueBaseModel.js';
|
|
4
|
-
import { StepHistoryDataType } from '../types/StepHistoryDataType.js';
|
|
5
4
|
import { LabelIdType } from '../types/LabelIdType.js';
|
|
5
|
+
import { StepHistoryDataType } from '../types/StepHistoryDataType.js';
|
|
6
6
|
import ExportedCanvas from './export/ExportedCanvas.js';
|
|
7
7
|
import ExportedStorage from './export/ExportedStorage.js';
|
|
8
8
|
import IOpenedLabel from './IOpenedLabel.js';
|
|
9
9
|
import '../classes/Label.js';
|
|
10
10
|
import '../types/StepLabelType.js';
|
|
11
11
|
import '@drincs/pixi-vn/dist/override';
|
|
12
|
-
import '../types/StorageElementType.js';
|
|
13
12
|
import '../types/CloseType.js';
|
|
14
13
|
import '../types/LabelRunModeType.js';
|
|
14
|
+
import '../types/StorageElementType.js';
|
|
15
15
|
import '../classes/CharacterBaseModel.js';
|
|
16
16
|
import '../classes/StoredClassModel.js';
|
|
17
17
|
import './canvas/ICanvasBaseMemory.js';
|
|
@@ -11,12 +11,12 @@ import './IHistoryStep.mjs';
|
|
|
11
11
|
import 'deep-diff';
|
|
12
12
|
import '../classes/ChoiceMenuOption.mjs';
|
|
13
13
|
import '../classes/Label.mjs';
|
|
14
|
+
import '../types/LabelIdType.mjs';
|
|
15
|
+
import '../types/StepHistoryDataType.mjs';
|
|
14
16
|
import '../types/StepLabelType.mjs';
|
|
15
17
|
import '@drincs/pixi-vn/dist/override';
|
|
16
|
-
import '../types/StepHistoryDataType.mjs';
|
|
17
18
|
import '../types/CloseType.mjs';
|
|
18
19
|
import '../types/LabelRunModeType.mjs';
|
|
19
|
-
import '../types/LabelIdType.mjs';
|
|
20
20
|
import '../classes/DialogueBaseModel.mjs';
|
|
21
21
|
import '../classes/CharacterBaseModel.mjs';
|
|
22
22
|
import '../classes/StoredClassModel.mjs';
|
|
@@ -11,12 +11,12 @@ import './IHistoryStep.js';
|
|
|
11
11
|
import 'deep-diff';
|
|
12
12
|
import '../classes/ChoiceMenuOption.js';
|
|
13
13
|
import '../classes/Label.js';
|
|
14
|
+
import '../types/LabelIdType.js';
|
|
15
|
+
import '../types/StepHistoryDataType.js';
|
|
14
16
|
import '../types/StepLabelType.js';
|
|
15
17
|
import '@drincs/pixi-vn/dist/override';
|
|
16
|
-
import '../types/StepHistoryDataType.js';
|
|
17
18
|
import '../types/CloseType.js';
|
|
18
19
|
import '../types/LabelRunModeType.js';
|
|
19
|
-
import '../types/LabelIdType.js';
|
|
20
20
|
import '../classes/DialogueBaseModel.js';
|
|
21
21
|
import '../classes/CharacterBaseModel.js';
|
|
22
22
|
import '../classes/StoredClassModel.js';
|
|
@@ -11,12 +11,12 @@ import '../../types/TickerIdType.mjs';
|
|
|
11
11
|
import 'deep-diff';
|
|
12
12
|
import '../../classes/ChoiceMenuOption.mjs';
|
|
13
13
|
import '../../classes/Label.mjs';
|
|
14
|
+
import '../../types/LabelIdType.mjs';
|
|
15
|
+
import '../../types/StepHistoryDataType.mjs';
|
|
14
16
|
import '../../types/StepLabelType.mjs';
|
|
15
17
|
import '@drincs/pixi-vn/dist/override';
|
|
16
|
-
import '../../types/StepHistoryDataType.mjs';
|
|
17
18
|
import '../../types/CloseType.mjs';
|
|
18
19
|
import '../../types/LabelRunModeType.mjs';
|
|
19
|
-
import '../../types/LabelIdType.mjs';
|
|
20
20
|
import '../../classes/DialogueBaseModel.mjs';
|
|
21
21
|
import '../../classes/CharacterBaseModel.mjs';
|
|
22
22
|
import '../../classes/StoredClassModel.mjs';
|
|
@@ -11,12 +11,12 @@ import '../../types/TickerIdType.js';
|
|
|
11
11
|
import 'deep-diff';
|
|
12
12
|
import '../../classes/ChoiceMenuOption.js';
|
|
13
13
|
import '../../classes/Label.js';
|
|
14
|
+
import '../../types/LabelIdType.js';
|
|
15
|
+
import '../../types/StepHistoryDataType.js';
|
|
14
16
|
import '../../types/StepLabelType.js';
|
|
15
17
|
import '@drincs/pixi-vn/dist/override';
|
|
16
|
-
import '../../types/StepHistoryDataType.js';
|
|
17
18
|
import '../../types/CloseType.js';
|
|
18
19
|
import '../../types/LabelRunModeType.js';
|
|
19
|
-
import '../../types/LabelIdType.js';
|
|
20
20
|
import '../../classes/DialogueBaseModel.js';
|
|
21
21
|
import '../../classes/CharacterBaseModel.js';
|
|
22
22
|
import '../../classes/StoredClassModel.js';
|
|
@@ -11,12 +11,12 @@ import '../IHistoryStep.mjs';
|
|
|
11
11
|
import 'deep-diff';
|
|
12
12
|
import '../../classes/ChoiceMenuOption.mjs';
|
|
13
13
|
import '../../classes/Label.mjs';
|
|
14
|
+
import '../../types/LabelIdType.mjs';
|
|
15
|
+
import '../../types/StepHistoryDataType.mjs';
|
|
14
16
|
import '../../types/StepLabelType.mjs';
|
|
15
17
|
import '@drincs/pixi-vn/dist/override';
|
|
16
|
-
import '../../types/StepHistoryDataType.mjs';
|
|
17
18
|
import '../../types/CloseType.mjs';
|
|
18
19
|
import '../../types/LabelRunModeType.mjs';
|
|
19
|
-
import '../../types/LabelIdType.mjs';
|
|
20
20
|
import '../../classes/DialogueBaseModel.mjs';
|
|
21
21
|
import '../../classes/CharacterBaseModel.mjs';
|
|
22
22
|
import '../../classes/StoredClassModel.mjs';
|
|
@@ -11,12 +11,12 @@ import '../IHistoryStep.js';
|
|
|
11
11
|
import 'deep-diff';
|
|
12
12
|
import '../../classes/ChoiceMenuOption.js';
|
|
13
13
|
import '../../classes/Label.js';
|
|
14
|
+
import '../../types/LabelIdType.js';
|
|
15
|
+
import '../../types/StepHistoryDataType.js';
|
|
14
16
|
import '../../types/StepLabelType.js';
|
|
15
17
|
import '@drincs/pixi-vn/dist/override';
|
|
16
|
-
import '../../types/StepHistoryDataType.js';
|
|
17
18
|
import '../../types/CloseType.js';
|
|
18
19
|
import '../../types/LabelRunModeType.js';
|
|
19
|
-
import '../../types/LabelIdType.js';
|
|
20
20
|
import '../../classes/DialogueBaseModel.js';
|
|
21
21
|
import '../../classes/CharacterBaseModel.js';
|
|
22
22
|
import '../../classes/StoredClassModel.js';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
+
export { default as DialogueHistory } from './DialogueHistory.mjs';
|
|
1
2
|
export { IClassWithArgsHistory, IClassWithArgsHistoryForExport } from './IClassWithArgsHistory.mjs';
|
|
2
|
-
export { IDialogueHistory } from './IDialogueHistory.mjs';
|
|
3
3
|
export { default as IHistoryStep, IHistoryStepData } from './IHistoryStep.mjs';
|
|
4
4
|
export { default as IOpenedLabel } from './IOpenedLabel.mjs';
|
|
5
5
|
export { default as ISaveData } from './ISaveData.mjs';
|
|
6
6
|
export { I as ITicker } from '../TickerBase-CFEJHstJ.mjs';
|
|
7
7
|
export { default as ITickersSteps } from './ITickersSteps.mjs';
|
|
8
8
|
export { TickerProgrationType } from './TickerProgrationType.mjs';
|
|
9
|
-
import 'pixi.js';
|
|
10
|
-
import '../types/TickerIdType.mjs';
|
|
11
9
|
import '../classes/ChoiceMenuOption.mjs';
|
|
12
10
|
import '../classes/Label.mjs';
|
|
11
|
+
import '../types/LabelIdType.mjs';
|
|
12
|
+
import '../types/StepHistoryDataType.mjs';
|
|
13
13
|
import '../types/StepLabelType.mjs';
|
|
14
14
|
import '@drincs/pixi-vn/dist/override';
|
|
15
|
-
import '../types/StorageElementType.mjs';
|
|
16
|
-
import '../types/StepHistoryDataType.mjs';
|
|
17
15
|
import '../types/CloseType.mjs';
|
|
18
16
|
import '../types/LabelRunModeType.mjs';
|
|
19
|
-
import '../types/
|
|
17
|
+
import '../types/StorageElementType.mjs';
|
|
20
18
|
import '../classes/DialogueBaseModel.mjs';
|
|
21
19
|
import '../classes/CharacterBaseModel.mjs';
|
|
22
20
|
import '../classes/StoredClassModel.mjs';
|
|
21
|
+
import 'pixi.js';
|
|
22
|
+
import '../types/TickerIdType.mjs';
|
|
23
23
|
import 'deep-diff';
|
|
24
24
|
import './export/ExportedCanvas.mjs';
|
|
25
25
|
import './canvas/ICanvasBaseMemory.mjs';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
+
export { default as DialogueHistory } from './DialogueHistory.js';
|
|
1
2
|
export { IClassWithArgsHistory, IClassWithArgsHistoryForExport } from './IClassWithArgsHistory.js';
|
|
2
|
-
export { IDialogueHistory } from './IDialogueHistory.js';
|
|
3
3
|
export { default as IHistoryStep, IHistoryStepData } from './IHistoryStep.js';
|
|
4
4
|
export { default as IOpenedLabel } from './IOpenedLabel.js';
|
|
5
5
|
export { default as ISaveData } from './ISaveData.js';
|
|
6
6
|
export { I as ITicker } from '../TickerBase-CjfyD6j5.js';
|
|
7
7
|
export { default as ITickersSteps } from './ITickersSteps.js';
|
|
8
8
|
export { TickerProgrationType } from './TickerProgrationType.js';
|
|
9
|
-
import 'pixi.js';
|
|
10
|
-
import '../types/TickerIdType.js';
|
|
11
9
|
import '../classes/ChoiceMenuOption.js';
|
|
12
10
|
import '../classes/Label.js';
|
|
11
|
+
import '../types/LabelIdType.js';
|
|
12
|
+
import '../types/StepHistoryDataType.js';
|
|
13
13
|
import '../types/StepLabelType.js';
|
|
14
14
|
import '@drincs/pixi-vn/dist/override';
|
|
15
|
-
import '../types/StorageElementType.js';
|
|
16
|
-
import '../types/StepHistoryDataType.js';
|
|
17
15
|
import '../types/CloseType.js';
|
|
18
16
|
import '../types/LabelRunModeType.js';
|
|
19
|
-
import '../types/
|
|
17
|
+
import '../types/StorageElementType.js';
|
|
20
18
|
import '../classes/DialogueBaseModel.js';
|
|
21
19
|
import '../classes/CharacterBaseModel.js';
|
|
22
20
|
import '../classes/StoredClassModel.js';
|
|
21
|
+
import 'pixi.js';
|
|
22
|
+
import '../types/TickerIdType.js';
|
|
23
23
|
import 'deep-diff';
|
|
24
24
|
import './export/ExportedCanvas.js';
|
|
25
25
|
import './canvas/ICanvasBaseMemory.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import CharacterBaseModel from '../classes/CharacterBaseModel.mjs';
|
|
2
2
|
import { StepLabelPropsType, StepLabelResultType } from '../types/StepLabelType.mjs';
|
|
3
|
+
import { LabelIdType } from '../types/LabelIdType.mjs';
|
|
3
4
|
import Label from '../classes/Label.mjs';
|
|
4
5
|
import DialogueBaseModel from '../classes/DialogueBaseModel.mjs';
|
|
5
6
|
import ExportedStep from '../interface/export/ExportedStep.mjs';
|
|
@@ -7,8 +8,8 @@ import IHistoryStep from '../interface/IHistoryStep.mjs';
|
|
|
7
8
|
import IOpenedLabel from '../interface/IOpenedLabel.mjs';
|
|
8
9
|
import '../classes/StoredClassModel.mjs';
|
|
9
10
|
import '@drincs/pixi-vn/dist/override';
|
|
10
|
-
import '../types/StorageElementType.mjs';
|
|
11
11
|
import '../types/StepHistoryDataType.mjs';
|
|
12
|
+
import '../types/StorageElementType.mjs';
|
|
12
13
|
import '../interface/export/ExportedCanvas.mjs';
|
|
13
14
|
import '../interface/canvas/ICanvasBaseMemory.mjs';
|
|
14
15
|
import '../interface/IClassWithArgsHistory.mjs';
|
|
@@ -20,7 +21,6 @@ import 'deep-diff';
|
|
|
20
21
|
import '../classes/ChoiceMenuOption.mjs';
|
|
21
22
|
import '../types/CloseType.mjs';
|
|
22
23
|
import '../types/LabelRunModeType.mjs';
|
|
23
|
-
import '../types/LabelIdType.mjs';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* GameStepManager is a class that manages the steps and labels of the game.
|
|
@@ -120,12 +120,12 @@ declare class GameStepManager {
|
|
|
120
120
|
/**
|
|
121
121
|
* Execute the label and add it to the history.
|
|
122
122
|
* Is a call function in Ren'Py.
|
|
123
|
-
* @param label The label to execute
|
|
123
|
+
* @param label The label to execute or the id of the label
|
|
124
124
|
* @param props The props to pass to the label.
|
|
125
125
|
* @returns StepLabelResultType or undefined.
|
|
126
126
|
* @example
|
|
127
127
|
* ```typescript
|
|
128
|
-
* GameStepManager.callLabel(
|
|
128
|
+
* GameStepManager.callLabel(startLabel, yourParams).then((result) => {
|
|
129
129
|
* if (result) {
|
|
130
130
|
* // your code
|
|
131
131
|
* }
|
|
@@ -134,21 +134,21 @@ declare class GameStepManager {
|
|
|
134
134
|
* @example
|
|
135
135
|
* ```typescript
|
|
136
136
|
* // if you use it in a step label you should return the result.
|
|
137
|
-
* return GameStepManager.callLabel(
|
|
137
|
+
* return GameStepManager.callLabel(startLabel).then((result) => {
|
|
138
138
|
* return result
|
|
139
139
|
* })
|
|
140
140
|
* ```
|
|
141
141
|
*/
|
|
142
|
-
static callLabel<T extends {}>(label:
|
|
142
|
+
static callLabel<T extends {} = {}>(label: Label<T> | LabelIdType, props?: StepLabelPropsType<T>): Promise<StepLabelResultType>;
|
|
143
143
|
/**
|
|
144
144
|
* Execute the label, close all labels and add them to the history.
|
|
145
145
|
* Is a jump function in Ren'Py.
|
|
146
146
|
* @param label The label to execute.
|
|
147
|
-
* @param props The props to pass to the label
|
|
147
|
+
* @param props The props to pass to the label or the id of the label
|
|
148
148
|
* @returns StepLabelResultType or undefined.
|
|
149
149
|
* @example
|
|
150
150
|
* ```typescript
|
|
151
|
-
* GameStepManager.jumpLabel(
|
|
151
|
+
* GameStepManager.jumpLabel(startLabel, yourParams).then((result) => {
|
|
152
152
|
* if (result) {
|
|
153
153
|
* // your code
|
|
154
154
|
* }
|
|
@@ -157,26 +157,26 @@ declare class GameStepManager {
|
|
|
157
157
|
* @example
|
|
158
158
|
* ```typescript
|
|
159
159
|
* // if you use it in a step label you should return the result.
|
|
160
|
-
* return GameStepManager.jumpLabel(
|
|
160
|
+
* return GameStepManager.jumpLabel(startLabel).then((result) => {
|
|
161
161
|
* return result
|
|
162
162
|
* })
|
|
163
163
|
* ```
|
|
164
164
|
*/
|
|
165
|
-
static jumpLabel<T extends {}>(label:
|
|
165
|
+
static jumpLabel<T extends {}>(label: Label<T> | LabelIdType, props?: StepLabelPropsType<T>): Promise<StepLabelResultType>;
|
|
166
166
|
/**
|
|
167
167
|
* When the player is in a choice menu, can use this function to exit to the choice menu.
|
|
168
168
|
* @param props The props to pass to the step.
|
|
169
169
|
* @returns StepLabelResultType or undefined.
|
|
170
170
|
* @example
|
|
171
171
|
* ```typescript
|
|
172
|
-
* GameStepManager.
|
|
172
|
+
* GameStepManager.closeChoiceMenu(yourParams).then((result) => {
|
|
173
173
|
* if (result) {
|
|
174
174
|
* // your code
|
|
175
175
|
* }
|
|
176
176
|
* })
|
|
177
177
|
* ```
|
|
178
178
|
*/
|
|
179
|
-
static
|
|
179
|
+
static closeChoiceMenu<T extends {}>(props?: StepLabelPropsType<T>): Promise<StepLabelResultType>;
|
|
180
180
|
/**
|
|
181
181
|
* Go back to the last step and add it to the history.
|
|
182
182
|
* @param navigate The navigate function.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import CharacterBaseModel from '../classes/CharacterBaseModel.js';
|
|
2
2
|
import { StepLabelPropsType, StepLabelResultType } from '../types/StepLabelType.js';
|
|
3
|
+
import { LabelIdType } from '../types/LabelIdType.js';
|
|
3
4
|
import Label from '../classes/Label.js';
|
|
4
5
|
import DialogueBaseModel from '../classes/DialogueBaseModel.js';
|
|
5
6
|
import ExportedStep from '../interface/export/ExportedStep.js';
|
|
@@ -7,8 +8,8 @@ import IHistoryStep from '../interface/IHistoryStep.js';
|
|
|
7
8
|
import IOpenedLabel from '../interface/IOpenedLabel.js';
|
|
8
9
|
import '../classes/StoredClassModel.js';
|
|
9
10
|
import '@drincs/pixi-vn/dist/override';
|
|
10
|
-
import '../types/StorageElementType.js';
|
|
11
11
|
import '../types/StepHistoryDataType.js';
|
|
12
|
+
import '../types/StorageElementType.js';
|
|
12
13
|
import '../interface/export/ExportedCanvas.js';
|
|
13
14
|
import '../interface/canvas/ICanvasBaseMemory.js';
|
|
14
15
|
import '../interface/IClassWithArgsHistory.js';
|
|
@@ -20,7 +21,6 @@ import 'deep-diff';
|
|
|
20
21
|
import '../classes/ChoiceMenuOption.js';
|
|
21
22
|
import '../types/CloseType.js';
|
|
22
23
|
import '../types/LabelRunModeType.js';
|
|
23
|
-
import '../types/LabelIdType.js';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* GameStepManager is a class that manages the steps and labels of the game.
|
|
@@ -120,12 +120,12 @@ declare class GameStepManager {
|
|
|
120
120
|
/**
|
|
121
121
|
* Execute the label and add it to the history.
|
|
122
122
|
* Is a call function in Ren'Py.
|
|
123
|
-
* @param label The label to execute
|
|
123
|
+
* @param label The label to execute or the id of the label
|
|
124
124
|
* @param props The props to pass to the label.
|
|
125
125
|
* @returns StepLabelResultType or undefined.
|
|
126
126
|
* @example
|
|
127
127
|
* ```typescript
|
|
128
|
-
* GameStepManager.callLabel(
|
|
128
|
+
* GameStepManager.callLabel(startLabel, yourParams).then((result) => {
|
|
129
129
|
* if (result) {
|
|
130
130
|
* // your code
|
|
131
131
|
* }
|
|
@@ -134,21 +134,21 @@ declare class GameStepManager {
|
|
|
134
134
|
* @example
|
|
135
135
|
* ```typescript
|
|
136
136
|
* // if you use it in a step label you should return the result.
|
|
137
|
-
* return GameStepManager.callLabel(
|
|
137
|
+
* return GameStepManager.callLabel(startLabel).then((result) => {
|
|
138
138
|
* return result
|
|
139
139
|
* })
|
|
140
140
|
* ```
|
|
141
141
|
*/
|
|
142
|
-
static callLabel<T extends {}>(label:
|
|
142
|
+
static callLabel<T extends {} = {}>(label: Label<T> | LabelIdType, props?: StepLabelPropsType<T>): Promise<StepLabelResultType>;
|
|
143
143
|
/**
|
|
144
144
|
* Execute the label, close all labels and add them to the history.
|
|
145
145
|
* Is a jump function in Ren'Py.
|
|
146
146
|
* @param label The label to execute.
|
|
147
|
-
* @param props The props to pass to the label
|
|
147
|
+
* @param props The props to pass to the label or the id of the label
|
|
148
148
|
* @returns StepLabelResultType or undefined.
|
|
149
149
|
* @example
|
|
150
150
|
* ```typescript
|
|
151
|
-
* GameStepManager.jumpLabel(
|
|
151
|
+
* GameStepManager.jumpLabel(startLabel, yourParams).then((result) => {
|
|
152
152
|
* if (result) {
|
|
153
153
|
* // your code
|
|
154
154
|
* }
|
|
@@ -157,26 +157,26 @@ declare class GameStepManager {
|
|
|
157
157
|
* @example
|
|
158
158
|
* ```typescript
|
|
159
159
|
* // if you use it in a step label you should return the result.
|
|
160
|
-
* return GameStepManager.jumpLabel(
|
|
160
|
+
* return GameStepManager.jumpLabel(startLabel).then((result) => {
|
|
161
161
|
* return result
|
|
162
162
|
* })
|
|
163
163
|
* ```
|
|
164
164
|
*/
|
|
165
|
-
static jumpLabel<T extends {}>(label:
|
|
165
|
+
static jumpLabel<T extends {}>(label: Label<T> | LabelIdType, props?: StepLabelPropsType<T>): Promise<StepLabelResultType>;
|
|
166
166
|
/**
|
|
167
167
|
* When the player is in a choice menu, can use this function to exit to the choice menu.
|
|
168
168
|
* @param props The props to pass to the step.
|
|
169
169
|
* @returns StepLabelResultType or undefined.
|
|
170
170
|
* @example
|
|
171
171
|
* ```typescript
|
|
172
|
-
* GameStepManager.
|
|
172
|
+
* GameStepManager.closeChoiceMenu(yourParams).then((result) => {
|
|
173
173
|
* if (result) {
|
|
174
174
|
* // your code
|
|
175
175
|
* }
|
|
176
176
|
* })
|
|
177
177
|
* ```
|
|
178
178
|
*/
|
|
179
|
-
static
|
|
179
|
+
static closeChoiceMenu<T extends {}>(props?: StepLabelPropsType<T>): Promise<StepLabelResultType>;
|
|
180
180
|
/**
|
|
181
181
|
* Go back to the last step and add it to the history.
|
|
182
182
|
* @param navigate The navigate function.
|