@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.
Files changed (137) hide show
  1. package/dist/canvas/CanvasManager.cjs +1 -1
  2. package/dist/canvas/CanvasManager.js +1 -1
  3. package/dist/canvas/CanvasManagerStatic.cjs +1 -1
  4. package/dist/canvas/CanvasManagerStatic.js +1 -1
  5. package/dist/canvas/components/Container.cjs +1 -1
  6. package/dist/canvas/components/Container.js +1 -1
  7. package/dist/canvas/components/ImageContainer.cjs +1 -1
  8. package/dist/canvas/components/ImageContainer.js +1 -1
  9. package/dist/canvas/components/ImageSprite.cjs +1 -1
  10. package/dist/canvas/components/ImageSprite.js +1 -1
  11. package/dist/canvas/components/Sprite.cjs +1 -1
  12. package/dist/canvas/components/Sprite.js +1 -1
  13. package/dist/canvas/components/Text.cjs +1 -1
  14. package/dist/canvas/components/Text.js +1 -1
  15. package/dist/canvas/components/VideoSprite.cjs +1 -1
  16. package/dist/canvas/components/VideoSprite.js +1 -1
  17. package/dist/canvas/decorators/canvas-element-decorator.cjs +1 -1
  18. package/dist/canvas/decorators/canvas-element-decorator.js +1 -1
  19. package/dist/canvas/decorators/event-decorator.cjs +1 -1
  20. package/dist/canvas/decorators/event-decorator.d.cts +1 -3
  21. package/dist/canvas/decorators/event-decorator.d.ts +1 -3
  22. package/dist/canvas/decorators/event-decorator.js +1 -1
  23. package/dist/canvas/functions/canvas-effect.cjs +1 -1
  24. package/dist/canvas/functions/canvas-effect.js +1 -1
  25. package/dist/canvas/functions/canvas-import-utility.cjs +1 -1
  26. package/dist/canvas/functions/canvas-import-utility.js +1 -1
  27. package/dist/canvas/functions/canvas-property-utility.cjs +1 -1
  28. package/dist/canvas/functions/canvas-property-utility.js +1 -1
  29. package/dist/canvas/functions/canvas-transition.cjs +1 -1
  30. package/dist/canvas/functions/canvas-transition.js +1 -1
  31. package/dist/canvas/functions/image-container-utility.cjs +1 -1
  32. package/dist/canvas/functions/image-container-utility.js +1 -1
  33. package/dist/canvas/functions/image-utility.cjs +1 -1
  34. package/dist/canvas/functions/image-utility.js +1 -1
  35. package/dist/canvas/functions/ticker-utility.cjs +1 -1
  36. package/dist/canvas/functions/ticker-utility.js +1 -1
  37. package/dist/canvas/functions/video-utility.cjs +1 -1
  38. package/dist/canvas/functions/video-utility.js +1 -1
  39. package/dist/canvas/index.cjs +1 -1
  40. package/dist/canvas/index.js +1 -1
  41. package/dist/canvas/tickers/classes/TickerBase.cjs +1 -1
  42. package/dist/canvas/tickers/classes/TickerBase.js +1 -1
  43. package/dist/canvas/tickers/components/FadeAlphaTicker.cjs +1 -1
  44. package/dist/canvas/tickers/components/FadeAlphaTicker.js +1 -1
  45. package/dist/canvas/tickers/components/MoveTicker.cjs +1 -1
  46. package/dist/canvas/tickers/components/MoveTicker.js +1 -1
  47. package/dist/canvas/tickers/components/RotateTicker.cjs +1 -1
  48. package/dist/canvas/tickers/components/RotateTicker.js +1 -1
  49. package/dist/canvas/tickers/components/ZoomTicker.cjs +1 -1
  50. package/dist/canvas/tickers/components/ZoomTicker.js +1 -1
  51. package/dist/canvas/tickers/decorators/ticker-decorator.cjs +1 -1
  52. package/dist/canvas/tickers/decorators/ticker-decorator.d.cts +1 -3
  53. package/dist/canvas/tickers/decorators/ticker-decorator.d.ts +1 -3
  54. package/dist/canvas/tickers/decorators/ticker-decorator.js +1 -1
  55. package/dist/canvas/tickers/index.cjs +1 -1
  56. package/dist/canvas/tickers/index.js +1 -1
  57. package/dist/character/decorators/character-decorator.cjs +1 -1
  58. package/dist/character/decorators/character-decorator.d.cts +1 -3
  59. package/dist/character/decorators/character-decorator.d.ts +1 -3
  60. package/dist/character/decorators/character-decorator.js +1 -1
  61. package/dist/character/index.cjs +1 -1
  62. package/dist/character/index.js +1 -1
  63. package/dist/constants.cjs +1 -1
  64. package/dist/constants.d.cts +1 -1
  65. package/dist/constants.d.ts +1 -1
  66. package/dist/constants.js +1 -1
  67. package/dist/history/HistoryManager.cjs +1 -1
  68. package/dist/history/HistoryManager.d.cts +1 -1
  69. package/dist/history/HistoryManager.d.ts +1 -1
  70. package/dist/history/HistoryManager.js +1 -1
  71. package/dist/history/HistoryManagerStatic.d.cts +1 -1
  72. package/dist/history/HistoryManagerStatic.d.ts +1 -1
  73. package/dist/history/index.cjs +1 -1
  74. package/dist/history/index.d.cts +1 -1
  75. package/dist/history/index.d.ts +1 -1
  76. package/dist/history/index.js +1 -1
  77. package/dist/history/interfaces/HistoryGameState.d.cts +1 -1
  78. package/dist/history/interfaces/HistoryGameState.d.ts +1 -1
  79. package/dist/history/interfaces/HistoryManagerInterface.d.cts +1 -1
  80. package/dist/history/interfaces/HistoryManagerInterface.d.ts +1 -1
  81. package/dist/{index-Bo5b5ojv.d.cts → index-A4Zf-9mB.d.cts} +4 -4
  82. package/dist/{index-b75SF7z8.d.ts → index-DwELdyJt.d.ts} +4 -4
  83. package/dist/index.cjs +101 -101
  84. package/dist/index.d.cts +4 -3
  85. package/dist/index.d.ts +4 -3
  86. package/dist/index.js +101 -101
  87. package/dist/interfaces/GameState.d.cts +1 -1
  88. package/dist/interfaces/GameState.d.ts +1 -1
  89. package/dist/interfaces/index.d.cts +1 -1
  90. package/dist/interfaces/index.d.ts +1 -1
  91. package/dist/narration/NarrationManager.cjs +32 -32
  92. package/dist/narration/NarrationManager.d.cts +7 -7
  93. package/dist/narration/NarrationManager.d.ts +7 -7
  94. package/dist/narration/NarrationManager.js +32 -32
  95. package/dist/narration/NarrationManagerStatic.cjs +51 -51
  96. package/dist/narration/NarrationManagerStatic.d.cts +1 -1
  97. package/dist/narration/NarrationManagerStatic.d.ts +1 -1
  98. package/dist/narration/NarrationManagerStatic.js +51 -51
  99. package/dist/narration/classes/ChoiceMenuOption.cjs +1 -1
  100. package/dist/narration/classes/ChoiceMenuOption.js +1 -1
  101. package/dist/narration/classes/CloseLabel.cjs +1 -1
  102. package/dist/narration/classes/CloseLabel.d.cts +1 -1
  103. package/dist/narration/classes/CloseLabel.d.ts +1 -1
  104. package/dist/narration/classes/CloseLabel.js +1 -1
  105. package/dist/narration/classes/Label.cjs +1 -1
  106. package/dist/narration/classes/Label.js +1 -1
  107. package/dist/narration/classes/LabelAbstract.cjs +1 -1
  108. package/dist/narration/classes/LabelAbstract.d.cts +2 -6
  109. package/dist/narration/classes/LabelAbstract.d.ts +2 -6
  110. package/dist/narration/classes/LabelAbstract.js +1 -1
  111. package/dist/narration/decorators/label-decorator.cjs +1 -1
  112. package/dist/narration/decorators/label-decorator.d.cts +17 -28
  113. package/dist/narration/decorators/label-decorator.d.ts +17 -28
  114. package/dist/narration/decorators/label-decorator.js +1 -1
  115. package/dist/narration/decorators/newLabel.cjs +1 -0
  116. package/dist/narration/decorators/newLabel.d.cts +18 -0
  117. package/dist/narration/decorators/newLabel.d.ts +18 -0
  118. package/dist/narration/decorators/newLabel.js +1 -0
  119. package/dist/narration/index.cjs +49 -49
  120. package/dist/narration/index.d.cts +3 -2
  121. package/dist/narration/index.d.ts +3 -2
  122. package/dist/narration/index.js +49 -49
  123. package/dist/narration/interfaces/HistoryStep.d.cts +1 -1
  124. package/dist/narration/interfaces/HistoryStep.d.ts +1 -1
  125. package/dist/narration/interfaces/NarrationGameState.d.cts +1 -1
  126. package/dist/narration/interfaces/NarrationGameState.d.ts +1 -1
  127. package/dist/narration/interfaces/NarrationManagerInterface.d.cts +7 -7
  128. package/dist/narration/interfaces/NarrationManagerInterface.d.ts +7 -7
  129. package/dist/narration/types/ChoiceMenuOptionsType.d.cts +1 -1
  130. package/dist/narration/types/ChoiceMenuOptionsType.d.ts +1 -1
  131. package/dist/pixi-devtools/additionalPositionsProperties.cjs +1 -1
  132. package/dist/pixi-devtools/additionalPositionsProperties.js +1 -1
  133. package/dist/sound/SoundManager.cjs +48 -48
  134. package/dist/sound/SoundManager.js +48 -48
  135. package/dist/sound/index.cjs +48 -48
  136. package/dist/sound/index.js +48 -48
  137. package/package.json +1 -1
@@ -9,8 +9,8 @@ import '../types/CloseType.cjs';
9
9
  import '../types/LabelRunModeType.cjs';
10
10
  import '../classes/Label.cjs';
11
11
  import '../classes/LabelAbstract.cjs';
12
- import '../types/StepLabelType.cjs';
13
12
  import './LabelProps.cjs';
13
+ import '../types/StepLabelType.cjs';
14
14
 
15
15
  /**
16
16
  * AdditionalShaSpetsEnum is a enum that contains the additional sha1 values that can be inserted in the step sha1.
@@ -9,8 +9,8 @@ import '../types/CloseType.js';
9
9
  import '../types/LabelRunModeType.js';
10
10
  import '../classes/Label.js';
11
11
  import '../classes/LabelAbstract.js';
12
- import '../types/StepLabelType.js';
13
12
  import './LabelProps.js';
13
+ import '../types/StepLabelType.js';
14
14
 
15
15
  /**
16
16
  * AdditionalShaSpetsEnum is a enum that contains the additional sha1 values that can be inserted in the step sha1.
@@ -10,8 +10,8 @@ import '../types/LabelIdType.cjs';
10
10
  import '../types/LabelRunModeType.cjs';
11
11
  import '../classes/Label.cjs';
12
12
  import '../classes/LabelAbstract.cjs';
13
- import '../types/StepLabelType.cjs';
14
13
  import './LabelProps.cjs';
14
+ import '../types/StepLabelType.cjs';
15
15
  import '../classes/Dialogue.cjs';
16
16
 
17
17
  /**
@@ -10,8 +10,8 @@ import '../types/LabelIdType.js';
10
10
  import '../types/LabelRunModeType.js';
11
11
  import '../classes/Label.js';
12
12
  import '../classes/LabelAbstract.js';
13
- import '../types/StepLabelType.js';
14
13
  import './LabelProps.js';
14
+ import '../types/StepLabelType.js';
15
15
  import '../classes/Dialogue.js';
16
16
 
17
17
  /**
@@ -3,16 +3,16 @@ import { StorageElementType } from '../../storage/types/StorageElementType.cjs';
3
3
  import NarrationGameState from './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 './HistoryStep.cjs';
10
10
  import OpenedLabel from './OpenedLabel.cjs';
11
11
  import { ChoiceMenuOptionsType } from '../types/ChoiceMenuOptionsType.cjs';
12
12
  import { InputInfo } from '../types/InputInfo.cjs';
13
- import { StepLabelPropsType, StepLabelResultType, StepLabelType } from '../types/StepLabelType.cjs';
14
13
  import '../types/CloseType.cjs';
15
14
  import '../types/LabelRunModeType.cjs';
15
+ import '../classes/Label.cjs';
16
16
  import './LabelProps.cjs';
17
17
  import 'deep-diff';
18
18
  import 'microdiff';
@@ -56,7 +56,7 @@ interface NarrationManagerInterface {
56
56
  /**
57
57
  * currentLabel is the current label that occurred during the progression of the steps.
58
58
  */
59
- readonly currentLabel: Label | undefined;
59
+ readonly currentLabel: LabelAbstract<any> | undefined;
60
60
  /**
61
61
  * Close the current label and add it to the history.
62
62
  * @returns
@@ -71,7 +71,7 @@ interface NarrationManagerInterface {
71
71
  * @param label The label to check.
72
72
  * @returns True if the label is already completed.
73
73
  */
74
- isLabelAlreadyCompleted<Label extends LabelAbstract<any>>(label: LabelIdType | Label): boolean;
74
+ isLabelAlreadyCompleted(label: LabelIdType | LabelAbstract<any>): boolean;
75
75
  /**
76
76
  * Get the choices already made in the current step. **Attention**: if the choice step index is edited or the code of choice step is edited, the result will be wrong.
77
77
  * @returns The choices already made in the current step. If there are no choices, it will return undefined.
@@ -158,7 +158,7 @@ interface NarrationManagerInterface {
158
158
  * })
159
159
  * ```
160
160
  */
161
- callLabel<T extends {} = {}>(label: Label<T> | LabelIdType, props: StepLabelPropsType<T>): Promise<StepLabelResultType>;
161
+ callLabel<T extends {} = {}>(label: LabelAbstract<any, T> | LabelIdType, props: StepLabelPropsType<T>): Promise<StepLabelResultType>;
162
162
  /**
163
163
  * Execute the label, close the current label, execute the new label and add the new label to the history. (It's similar to Ren'Py's jump function)
164
164
  * @param label The label to execute.
@@ -180,7 +180,7 @@ interface NarrationManagerInterface {
180
180
  * })
181
181
  * ```
182
182
  */
183
- jumpLabel<T extends {}>(label: Label<T> | LabelIdType, props: StepLabelPropsType<T>): Promise<StepLabelResultType>;
183
+ jumpLabel<T extends {}>(label: LabelAbstract<any, T> | LabelIdType, props: StepLabelPropsType<T>): Promise<StepLabelResultType>;
184
184
  /**
185
185
  * Select a choice from the choice menu. and close the choice menu.
186
186
  * @param item
@@ -3,16 +3,16 @@ import { StorageElementType } from '../../storage/types/StorageElementType.js';
3
3
  import NarrationGameState from './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 './HistoryStep.js';
10
10
  import OpenedLabel from './OpenedLabel.js';
11
11
  import { ChoiceMenuOptionsType } from '../types/ChoiceMenuOptionsType.js';
12
12
  import { InputInfo } from '../types/InputInfo.js';
13
- import { StepLabelPropsType, StepLabelResultType, StepLabelType } from '../types/StepLabelType.js';
14
13
  import '../types/CloseType.js';
15
14
  import '../types/LabelRunModeType.js';
15
+ import '../classes/Label.js';
16
16
  import './LabelProps.js';
17
17
  import 'deep-diff';
18
18
  import 'microdiff';
@@ -56,7 +56,7 @@ interface NarrationManagerInterface {
56
56
  /**
57
57
  * currentLabel is the current label that occurred during the progression of the steps.
58
58
  */
59
- readonly currentLabel: Label | undefined;
59
+ readonly currentLabel: LabelAbstract<any> | undefined;
60
60
  /**
61
61
  * Close the current label and add it to the history.
62
62
  * @returns
@@ -71,7 +71,7 @@ interface NarrationManagerInterface {
71
71
  * @param label The label to check.
72
72
  * @returns True if the label is already completed.
73
73
  */
74
- isLabelAlreadyCompleted<Label extends LabelAbstract<any>>(label: LabelIdType | Label): boolean;
74
+ isLabelAlreadyCompleted(label: LabelIdType | LabelAbstract<any>): boolean;
75
75
  /**
76
76
  * Get the choices already made in the current step. **Attention**: if the choice step index is edited or the code of choice step is edited, the result will be wrong.
77
77
  * @returns The choices already made in the current step. If there are no choices, it will return undefined.
@@ -158,7 +158,7 @@ interface NarrationManagerInterface {
158
158
  * })
159
159
  * ```
160
160
  */
161
- callLabel<T extends {} = {}>(label: Label<T> | LabelIdType, props: StepLabelPropsType<T>): Promise<StepLabelResultType>;
161
+ callLabel<T extends {} = {}>(label: LabelAbstract<any, T> | LabelIdType, props: StepLabelPropsType<T>): Promise<StepLabelResultType>;
162
162
  /**
163
163
  * Execute the label, close the current label, execute the new label and add the new label to the history. (It's similar to Ren'Py's jump function)
164
164
  * @param label The label to execute.
@@ -180,7 +180,7 @@ interface NarrationManagerInterface {
180
180
  * })
181
181
  * ```
182
182
  */
183
- jumpLabel<T extends {}>(label: Label<T> | LabelIdType, props: StepLabelPropsType<T>): Promise<StepLabelResultType>;
183
+ jumpLabel<T extends {}>(label: LabelAbstract<any, T> | LabelIdType, props: StepLabelPropsType<T>): Promise<StepLabelResultType>;
184
184
  /**
185
185
  * Select a choice from the choice menu. and close the choice menu.
186
186
  * @param item
@@ -5,9 +5,9 @@ import './LabelIdType.cjs';
5
5
  import './LabelRunModeType.cjs';
6
6
  import '../classes/Label.cjs';
7
7
  import '../classes/LabelAbstract.cjs';
8
+ import '../interfaces/LabelProps.cjs';
8
9
  import './StepLabelType.cjs';
9
10
  import '@drincs/pixi-vn';
10
- import '../interfaces/LabelProps.cjs';
11
11
 
12
12
  /**
13
13
  * Munu is a type that contains a list of Label that a player can choose from.
@@ -5,9 +5,9 @@ import './LabelIdType.js';
5
5
  import './LabelRunModeType.js';
6
6
  import '../classes/Label.js';
7
7
  import '../classes/LabelAbstract.js';
8
+ import '../interfaces/LabelProps.js';
8
9
  import './StepLabelType.js';
9
10
  import '@drincs/pixi-vn';
10
- import '../interfaces/LabelProps.js';
11
11
 
12
12
  /**
13
13
  * Munu is a type that contains a list of Label that a player can choose from.