@drincs/pixi-vn 1.0.0 → 1.0.2
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/canvas/CanvasManager.cjs +1 -1
- package/dist/canvas/CanvasManager.js +1 -1
- package/dist/canvas/CanvasManagerStatic.cjs +1 -1
- package/dist/canvas/CanvasManagerStatic.js +1 -1
- package/dist/canvas/components/Container.cjs +1 -1
- package/dist/canvas/components/Container.js +1 -1
- package/dist/canvas/components/ImageContainer.cjs +1 -1
- package/dist/canvas/components/ImageContainer.js +1 -1
- package/dist/canvas/components/ImageSprite.cjs +1 -1
- package/dist/canvas/components/ImageSprite.js +1 -1
- package/dist/canvas/components/Sprite.cjs +1 -1
- package/dist/canvas/components/Sprite.js +1 -1
- package/dist/canvas/components/Text.cjs +1 -1
- package/dist/canvas/components/Text.js +1 -1
- package/dist/canvas/components/VideoSprite.cjs +1 -1
- package/dist/canvas/components/VideoSprite.js +1 -1
- package/dist/canvas/decorators/canvas-element-decorator.cjs +1 -1
- package/dist/canvas/decorators/canvas-element-decorator.js +1 -1
- package/dist/canvas/decorators/event-decorator.cjs +1 -1
- package/dist/canvas/decorators/event-decorator.d.cts +1 -3
- package/dist/canvas/decorators/event-decorator.d.ts +1 -3
- package/dist/canvas/decorators/event-decorator.js +1 -1
- package/dist/canvas/functions/canvas-effect.cjs +1 -1
- package/dist/canvas/functions/canvas-effect.js +1 -1
- package/dist/canvas/functions/canvas-import-utility.cjs +1 -1
- package/dist/canvas/functions/canvas-import-utility.js +1 -1
- package/dist/canvas/functions/canvas-property-utility.cjs +1 -1
- package/dist/canvas/functions/canvas-property-utility.js +1 -1
- package/dist/canvas/functions/canvas-transition.cjs +1 -1
- package/dist/canvas/functions/canvas-transition.js +1 -1
- package/dist/canvas/functions/image-container-utility.cjs +1 -1
- package/dist/canvas/functions/image-container-utility.js +1 -1
- package/dist/canvas/functions/image-utility.cjs +1 -1
- package/dist/canvas/functions/image-utility.js +1 -1
- package/dist/canvas/functions/ticker-utility.cjs +1 -1
- package/dist/canvas/functions/ticker-utility.js +1 -1
- package/dist/canvas/functions/video-utility.cjs +1 -1
- package/dist/canvas/functions/video-utility.js +1 -1
- package/dist/canvas/index.cjs +1 -1
- package/dist/canvas/index.js +1 -1
- package/dist/canvas/tickers/classes/TickerBase.cjs +1 -1
- package/dist/canvas/tickers/classes/TickerBase.js +1 -1
- package/dist/canvas/tickers/components/FadeAlphaTicker.cjs +1 -1
- package/dist/canvas/tickers/components/FadeAlphaTicker.js +1 -1
- package/dist/canvas/tickers/components/MoveTicker.cjs +1 -1
- package/dist/canvas/tickers/components/MoveTicker.js +1 -1
- package/dist/canvas/tickers/components/RotateTicker.cjs +1 -1
- package/dist/canvas/tickers/components/RotateTicker.js +1 -1
- package/dist/canvas/tickers/components/ZoomTicker.cjs +1 -1
- package/dist/canvas/tickers/components/ZoomTicker.js +1 -1
- package/dist/canvas/tickers/decorators/ticker-decorator.cjs +1 -1
- package/dist/canvas/tickers/decorators/ticker-decorator.d.cts +1 -3
- package/dist/canvas/tickers/decorators/ticker-decorator.d.ts +1 -3
- package/dist/canvas/tickers/decorators/ticker-decorator.js +1 -1
- package/dist/canvas/tickers/index.cjs +1 -1
- package/dist/canvas/tickers/index.js +1 -1
- package/dist/character/decorators/character-decorator.cjs +1 -1
- package/dist/character/decorators/character-decorator.d.cts +1 -3
- package/dist/character/decorators/character-decorator.d.ts +1 -3
- package/dist/character/decorators/character-decorator.js +1 -1
- package/dist/character/index.cjs +1 -1
- package/dist/character/index.js +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/history/HistoryManager.cjs +1 -1
- package/dist/history/HistoryManager.d.cts +1 -1
- package/dist/history/HistoryManager.d.ts +1 -1
- package/dist/history/HistoryManager.js +1 -1
- package/dist/history/HistoryManagerStatic.d.cts +1 -1
- package/dist/history/HistoryManagerStatic.d.ts +1 -1
- package/dist/history/index.cjs +1 -1
- package/dist/history/index.d.cts +1 -1
- package/dist/history/index.d.ts +1 -1
- package/dist/history/index.js +1 -1
- package/dist/history/interfaces/HistoryGameState.d.cts +1 -1
- package/dist/history/interfaces/HistoryGameState.d.ts +1 -1
- package/dist/history/interfaces/HistoryManagerInterface.d.cts +1 -1
- package/dist/history/interfaces/HistoryManagerInterface.d.ts +1 -1
- package/dist/{index-Bo5b5ojv.d.cts → index-A4Zf-9mB.d.cts} +4 -4
- package/dist/{index-b75SF7z8.d.ts → index-DwELdyJt.d.ts} +4 -4
- package/dist/index.cjs +101 -101
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +101 -101
- package/dist/interfaces/GameState.d.cts +1 -1
- package/dist/interfaces/GameState.d.ts +1 -1
- package/dist/interfaces/index.d.cts +1 -1
- package/dist/interfaces/index.d.ts +1 -1
- package/dist/narration/NarrationManager.cjs +32 -32
- package/dist/narration/NarrationManager.d.cts +7 -7
- package/dist/narration/NarrationManager.d.ts +7 -7
- package/dist/narration/NarrationManager.js +32 -32
- package/dist/narration/NarrationManagerStatic.cjs +51 -51
- package/dist/narration/NarrationManagerStatic.d.cts +1 -1
- package/dist/narration/NarrationManagerStatic.d.ts +1 -1
- package/dist/narration/NarrationManagerStatic.js +51 -51
- package/dist/narration/classes/ChoiceMenuOption.cjs +1 -1
- package/dist/narration/classes/ChoiceMenuOption.js +1 -1
- package/dist/narration/classes/CloseLabel.cjs +1 -1
- package/dist/narration/classes/CloseLabel.d.cts +1 -1
- package/dist/narration/classes/CloseLabel.d.ts +1 -1
- package/dist/narration/classes/CloseLabel.js +1 -1
- package/dist/narration/classes/Label.cjs +1 -1
- package/dist/narration/classes/Label.js +1 -1
- package/dist/narration/classes/LabelAbstract.cjs +1 -1
- package/dist/narration/classes/LabelAbstract.d.cts +2 -6
- package/dist/narration/classes/LabelAbstract.d.ts +2 -6
- package/dist/narration/classes/LabelAbstract.js +1 -1
- package/dist/narration/decorators/label-decorator.cjs +1 -1
- package/dist/narration/decorators/label-decorator.d.cts +17 -28
- package/dist/narration/decorators/label-decorator.d.ts +17 -28
- package/dist/narration/decorators/label-decorator.js +1 -1
- package/dist/narration/decorators/newLabel.cjs +1 -0
- package/dist/narration/decorators/newLabel.d.cts +18 -0
- package/dist/narration/decorators/newLabel.d.ts +18 -0
- package/dist/narration/decorators/newLabel.js +1 -0
- package/dist/narration/index.cjs +49 -49
- package/dist/narration/index.d.cts +3 -2
- package/dist/narration/index.d.ts +3 -2
- package/dist/narration/index.js +49 -49
- package/dist/narration/interfaces/HistoryStep.d.cts +1 -1
- package/dist/narration/interfaces/HistoryStep.d.ts +1 -1
- package/dist/narration/interfaces/NarrationGameState.d.cts +1 -1
- package/dist/narration/interfaces/NarrationGameState.d.ts +1 -1
- package/dist/narration/interfaces/NarrationManagerInterface.d.cts +7 -7
- package/dist/narration/interfaces/NarrationManagerInterface.d.ts +7 -7
- package/dist/narration/types/ChoiceMenuOptionsType.d.cts +1 -1
- package/dist/narration/types/ChoiceMenuOptionsType.d.ts +1 -1
- package/dist/pixi-devtools/additionalPositionsProperties.cjs +1 -1
- package/dist/pixi-devtools/additionalPositionsProperties.js +1 -1
- package/dist/sound/SoundManager.cjs +48 -48
- package/dist/sound/SoundManager.js +48 -48
- package/dist/sound/index.cjs +48 -48
- package/dist/sound/index.js +48 -48
- package/package.json +1 -1
|
@@ -3,17 +3,17 @@ import { CharacterInterface } from '@drincs/pixi-vn';
|
|
|
3
3
|
import NarrationGameState from './interfaces/NarrationGameState.cjs';
|
|
4
4
|
import ChoiceMenuOption, { ChoiceMenuOptionClose } from './classes/ChoiceMenuOption.cjs';
|
|
5
5
|
import Dialogue from './classes/Dialogue.cjs';
|
|
6
|
-
import Label from './classes/Label.cjs';
|
|
7
|
-
import LabelAbstract from './classes/LabelAbstract.cjs';
|
|
8
6
|
import { LabelIdType } from './types/LabelIdType.cjs';
|
|
7
|
+
import { StepLabelPropsType, StepLabelResultType, StepLabelType } from './types/StepLabelType.cjs';
|
|
8
|
+
import LabelAbstract from './classes/LabelAbstract.cjs';
|
|
9
9
|
import HistoryStep from './interfaces/HistoryStep.cjs';
|
|
10
10
|
import NarrationManagerInterface from './interfaces/NarrationManagerInterface.cjs';
|
|
11
11
|
import OpenedLabel from './interfaces/OpenedLabel.cjs';
|
|
12
12
|
import { ChoiceMenuOptionsType } from './types/ChoiceMenuOptionsType.cjs';
|
|
13
13
|
import { InputInfo } from './types/InputInfo.cjs';
|
|
14
|
-
import { StepLabelPropsType, StepLabelResultType, StepLabelType } from './types/StepLabelType.cjs';
|
|
15
14
|
import './types/CloseType.cjs';
|
|
16
15
|
import './types/LabelRunModeType.cjs';
|
|
16
|
+
import './classes/Label.cjs';
|
|
17
17
|
import './interfaces/LabelProps.cjs';
|
|
18
18
|
import 'deep-diff';
|
|
19
19
|
import 'microdiff';
|
|
@@ -29,7 +29,7 @@ declare class NarrationManager implements NarrationManagerInterface {
|
|
|
29
29
|
}): number | undefined;
|
|
30
30
|
get stepCounter(): number;
|
|
31
31
|
get openedLabels(): OpenedLabel[];
|
|
32
|
-
get currentLabel():
|
|
32
|
+
get currentLabel(): LabelAbstract<any> | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* Add a label to the history.
|
|
35
35
|
* @param stepSha The sha1 of the step.
|
|
@@ -38,7 +38,7 @@ declare class NarrationManager implements NarrationManagerInterface {
|
|
|
38
38
|
private addStepHistory;
|
|
39
39
|
closeCurrentLabel(): void;
|
|
40
40
|
closeAllLabels(): void;
|
|
41
|
-
isLabelAlreadyCompleted
|
|
41
|
+
isLabelAlreadyCompleted(label: LabelIdType | LabelAbstract<any>): boolean;
|
|
42
42
|
private get alreadyCurrentStepMadeChoicesObj();
|
|
43
43
|
get alreadyCurrentStepMadeChoices(): number[] | undefined;
|
|
44
44
|
get isCurrentStepAlreadyOpened(): boolean;
|
|
@@ -58,13 +58,13 @@ declare class NarrationManager implements NarrationManagerInterface {
|
|
|
58
58
|
* @returns StepLabelResultType or undefined.
|
|
59
59
|
*/
|
|
60
60
|
private runCurrentStep;
|
|
61
|
-
callLabel<T extends {} = {}>(label:
|
|
61
|
+
callLabel<T extends {} = {}>(label: LabelAbstract<any, T> | LabelIdType, props: StepLabelPropsType<T>, options?: {
|
|
62
62
|
/**
|
|
63
63
|
* The index of the choise made by the player. (This params is used in the choice menu)
|
|
64
64
|
*/
|
|
65
65
|
choiseMade?: number;
|
|
66
66
|
}): Promise<StepLabelResultType>;
|
|
67
|
-
jumpLabel<T extends {}>(label:
|
|
67
|
+
jumpLabel<T extends {}>(label: LabelAbstract<any, T> | LabelIdType, props: StepLabelPropsType<T>, options?: {
|
|
68
68
|
/**
|
|
69
69
|
* The index of the choise made by the player. (This params is used in the choice menu)
|
|
70
70
|
*/
|
|
@@ -3,17 +3,17 @@ import { CharacterInterface } from '@drincs/pixi-vn';
|
|
|
3
3
|
import NarrationGameState from './interfaces/NarrationGameState.js';
|
|
4
4
|
import ChoiceMenuOption, { ChoiceMenuOptionClose } from './classes/ChoiceMenuOption.js';
|
|
5
5
|
import Dialogue from './classes/Dialogue.js';
|
|
6
|
-
import Label from './classes/Label.js';
|
|
7
|
-
import LabelAbstract from './classes/LabelAbstract.js';
|
|
8
6
|
import { LabelIdType } from './types/LabelIdType.js';
|
|
7
|
+
import { StepLabelPropsType, StepLabelResultType, StepLabelType } from './types/StepLabelType.js';
|
|
8
|
+
import LabelAbstract from './classes/LabelAbstract.js';
|
|
9
9
|
import HistoryStep from './interfaces/HistoryStep.js';
|
|
10
10
|
import NarrationManagerInterface from './interfaces/NarrationManagerInterface.js';
|
|
11
11
|
import OpenedLabel from './interfaces/OpenedLabel.js';
|
|
12
12
|
import { ChoiceMenuOptionsType } from './types/ChoiceMenuOptionsType.js';
|
|
13
13
|
import { InputInfo } from './types/InputInfo.js';
|
|
14
|
-
import { StepLabelPropsType, StepLabelResultType, StepLabelType } from './types/StepLabelType.js';
|
|
15
14
|
import './types/CloseType.js';
|
|
16
15
|
import './types/LabelRunModeType.js';
|
|
16
|
+
import './classes/Label.js';
|
|
17
17
|
import './interfaces/LabelProps.js';
|
|
18
18
|
import 'deep-diff';
|
|
19
19
|
import 'microdiff';
|
|
@@ -29,7 +29,7 @@ declare class NarrationManager implements NarrationManagerInterface {
|
|
|
29
29
|
}): number | undefined;
|
|
30
30
|
get stepCounter(): number;
|
|
31
31
|
get openedLabels(): OpenedLabel[];
|
|
32
|
-
get currentLabel():
|
|
32
|
+
get currentLabel(): LabelAbstract<any> | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* Add a label to the history.
|
|
35
35
|
* @param stepSha The sha1 of the step.
|
|
@@ -38,7 +38,7 @@ declare class NarrationManager implements NarrationManagerInterface {
|
|
|
38
38
|
private addStepHistory;
|
|
39
39
|
closeCurrentLabel(): void;
|
|
40
40
|
closeAllLabels(): void;
|
|
41
|
-
isLabelAlreadyCompleted
|
|
41
|
+
isLabelAlreadyCompleted(label: LabelIdType | LabelAbstract<any>): boolean;
|
|
42
42
|
private get alreadyCurrentStepMadeChoicesObj();
|
|
43
43
|
get alreadyCurrentStepMadeChoices(): number[] | undefined;
|
|
44
44
|
get isCurrentStepAlreadyOpened(): boolean;
|
|
@@ -58,13 +58,13 @@ declare class NarrationManager implements NarrationManagerInterface {
|
|
|
58
58
|
* @returns StepLabelResultType or undefined.
|
|
59
59
|
*/
|
|
60
60
|
private runCurrentStep;
|
|
61
|
-
callLabel<T extends {} = {}>(label:
|
|
61
|
+
callLabel<T extends {} = {}>(label: LabelAbstract<any, T> | LabelIdType, props: StepLabelPropsType<T>, options?: {
|
|
62
62
|
/**
|
|
63
63
|
* The index of the choise made by the player. (This params is used in the choice menu)
|
|
64
64
|
*/
|
|
65
65
|
choiseMade?: number;
|
|
66
66
|
}): Promise<StepLabelResultType>;
|
|
67
|
-
jumpLabel<T extends {}>(label:
|
|
67
|
+
jumpLabel<T extends {}>(label: LabelAbstract<any, T> | LabelIdType, props: StepLabelPropsType<T>, options?: {
|
|
68
68
|
/**
|
|
69
69
|
* The index of the choise made by the player. (This params is used in the choice menu)
|
|
70
70
|
*/
|