@drincs/pixi-vn 1.1.2 → 1.2.0

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 (127) 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 +2 -2
  10. package/dist/canvas/components/ImageSprite.js +2 -2
  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 +2 -2
  16. package/dist/canvas/components/VideoSprite.js +2 -2
  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.js +1 -1
  21. package/dist/canvas/functions/canvas-effect.cjs +1 -1
  22. package/dist/canvas/functions/canvas-effect.js +1 -1
  23. package/dist/canvas/functions/canvas-import-utility.cjs +1 -1
  24. package/dist/canvas/functions/canvas-import-utility.js +1 -1
  25. package/dist/canvas/functions/canvas-transition.cjs +1 -1
  26. package/dist/canvas/functions/canvas-transition.js +1 -1
  27. package/dist/canvas/functions/image-container-utility.cjs +1 -1
  28. package/dist/canvas/functions/image-container-utility.js +1 -1
  29. package/dist/canvas/functions/image-utility.cjs +1 -1
  30. package/dist/canvas/functions/image-utility.js +1 -1
  31. package/dist/canvas/functions/video-utility.cjs +1 -1
  32. package/dist/canvas/functions/video-utility.js +1 -1
  33. package/dist/canvas/index.cjs +1 -1
  34. package/dist/canvas/index.js +1 -1
  35. package/dist/canvas/tickers/classes/TickerBase.cjs +1 -1
  36. package/dist/canvas/tickers/classes/TickerBase.js +1 -1
  37. package/dist/canvas/tickers/components/FadeAlphaTicker.cjs +1 -1
  38. package/dist/canvas/tickers/components/FadeAlphaTicker.js +1 -1
  39. package/dist/canvas/tickers/components/MoveTicker.cjs +1 -1
  40. package/dist/canvas/tickers/components/MoveTicker.js +1 -1
  41. package/dist/canvas/tickers/components/RotateTicker.cjs +1 -1
  42. package/dist/canvas/tickers/components/RotateTicker.js +1 -1
  43. package/dist/canvas/tickers/components/ZoomTicker.cjs +1 -1
  44. package/dist/canvas/tickers/components/ZoomTicker.js +1 -1
  45. package/dist/canvas/tickers/decorators/ticker-decorator.cjs +1 -1
  46. package/dist/canvas/tickers/decorators/ticker-decorator.js +1 -1
  47. package/dist/canvas/tickers/functions/ticker-texture-utility.cjs +1 -1
  48. package/dist/canvas/tickers/functions/ticker-texture-utility.js +1 -1
  49. package/dist/canvas/tickers/index.cjs +1 -1
  50. package/dist/canvas/tickers/index.js +1 -1
  51. package/dist/character/classes/CharacterBaseModel.cjs +17 -17
  52. package/dist/character/classes/CharacterBaseModel.js +17 -17
  53. package/dist/character/classes/CharacterStoredClass.cjs +16 -16
  54. package/dist/character/classes/CharacterStoredClass.js +16 -16
  55. package/dist/character/decorators/character-decorator.cjs +1 -1
  56. package/dist/character/decorators/character-decorator.js +1 -1
  57. package/dist/character/index.cjs +16 -16
  58. package/dist/character/index.js +16 -16
  59. package/dist/classes/CachedMap.cjs +1 -1
  60. package/dist/classes/CachedMap.d.cts +1 -1
  61. package/dist/classes/CachedMap.d.ts +1 -1
  62. package/dist/classes/CachedMap.js +1 -1
  63. package/dist/classes/index.cjs +1 -1
  64. package/dist/classes/index.js +1 -1
  65. package/dist/constants.cjs +1 -1
  66. package/dist/constants.d.cts +5 -1
  67. package/dist/constants.d.ts +5 -1
  68. package/dist/constants.js +1 -1
  69. package/dist/history/HistoryManager.cjs +2 -2
  70. package/dist/history/HistoryManager.d.cts +24 -13
  71. package/dist/history/HistoryManager.d.ts +24 -13
  72. package/dist/history/HistoryManager.js +2 -2
  73. package/dist/history/HistoryManagerStatic.cjs +1 -1
  74. package/dist/history/HistoryManagerStatic.d.cts +9 -8
  75. package/dist/history/HistoryManagerStatic.d.ts +9 -8
  76. package/dist/history/HistoryManagerStatic.js +1 -1
  77. package/dist/history/index.cjs +2 -2
  78. package/dist/history/index.d.cts +4 -2
  79. package/dist/history/index.d.ts +4 -2
  80. package/dist/history/index.js +2 -2
  81. package/dist/history/interfaces/HistoryManagerInterface.d.cts +54 -11
  82. package/dist/history/interfaces/HistoryManagerInterface.d.ts +54 -11
  83. package/dist/{index-CWhYJ7yq.d.ts → index-CvpVN1rC.d.ts} +3 -3
  84. package/dist/{index-CVn6zVij.d.cts → index-DCnX_VPi.d.cts} +3 -3
  85. package/dist/index.cjs +73 -73
  86. package/dist/index.d.cts +6 -5
  87. package/dist/index.d.ts +6 -5
  88. package/dist/index.js +73 -73
  89. package/dist/narration/NarrationManager.cjs +16 -16
  90. package/dist/narration/NarrationManager.d.cts +1 -1
  91. package/dist/narration/NarrationManager.d.ts +1 -1
  92. package/dist/narration/NarrationManager.js +16 -16
  93. package/dist/narration/NarrationManagerStatic.cjs +1 -1
  94. package/dist/narration/NarrationManagerStatic.js +1 -1
  95. package/dist/narration/classes/ChoiceMenuOption.cjs +1 -1
  96. package/dist/narration/classes/ChoiceMenuOption.js +1 -1
  97. package/dist/narration/decorators/RegisteredLabels.cjs +1 -1
  98. package/dist/narration/decorators/RegisteredLabels.js +1 -1
  99. package/dist/narration/decorators/newLabel.cjs +1 -1
  100. package/dist/narration/decorators/newLabel.js +1 -1
  101. package/dist/narration/index.cjs +17 -17
  102. package/dist/narration/index.d.cts +2 -2
  103. package/dist/narration/index.d.ts +2 -2
  104. package/dist/narration/index.js +17 -17
  105. package/dist/narration/interfaces/HistoryStep.d.cts +5 -5
  106. package/dist/narration/interfaces/HistoryStep.d.ts +5 -5
  107. package/dist/narration/interfaces/{NarrativeHistory.d.cts → NarrationHistory.d.cts} +2 -2
  108. package/dist/narration/interfaces/{NarrativeHistory.d.ts → NarrationHistory.d.ts} +2 -2
  109. package/dist/narration/interfaces/NarrationManagerInterface.d.cts +1 -1
  110. package/dist/narration/interfaces/NarrationManagerInterface.d.ts +1 -1
  111. package/dist/pixi-devtools/additionalPositionsProperties.cjs +1 -1
  112. package/dist/pixi-devtools/additionalPositionsProperties.js +1 -1
  113. package/dist/pixi-vn.d.d.cts +44 -1
  114. package/dist/pixi-vn.d.d.ts +44 -1
  115. package/dist/storage/StorageManager.cjs +1 -1
  116. package/dist/storage/StorageManager.js +1 -1
  117. package/dist/storage/StorageManagerStatic.cjs +1 -1
  118. package/dist/storage/StorageManagerStatic.js +1 -1
  119. package/dist/storage/classes/StoredClassModel.cjs +1 -1
  120. package/dist/storage/classes/StoredClassModel.js +1 -1
  121. package/dist/storage/index.cjs +1 -1
  122. package/dist/storage/index.js +1 -1
  123. package/dist/utils/diff-utility.d.cts +2 -2
  124. package/dist/utils/diff-utility.d.ts +2 -2
  125. package/package.json +3 -3
  126. /package/dist/narration/interfaces/{NarrativeHistory.cjs → NarrationHistory.cjs} +0 -0
  127. /package/dist/narration/interfaces/{NarrativeHistory.js → NarrationHistory.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { GameStepState } from '@drincs/pixi-vn';
2
- import deepDiff from 'deep-diff';
2
+ import deepDiff__default from 'deep-diff';
3
3
  import { Difference } from 'microdiff';
4
4
  import { StorageElementType } from '../../storage/types/StorageElementType.cjs';
5
5
  import StoredChoiceInterface from './StoredChoiceInterface.cjs';
@@ -25,7 +25,7 @@ interface HistoryStep {
25
25
  /**
26
26
  * The difference between the previous step and the current step.
27
27
  */
28
- diff?: deepDiff.Diff<GameStepState, GameStepState>[] | Difference[];
28
+ diff?: deepDiff__default.Diff<GameStepState, GameStepState>[] | Difference[];
29
29
  /**
30
30
  * The label id of the current step.
31
31
  */
@@ -35,7 +35,7 @@ interface HistoryStep {
35
35
  */
36
36
  stepSha1: string;
37
37
  /**
38
- * The index of the step in the history.
38
+ * Equivalent to the narration.stepCounter
39
39
  */
40
40
  index: number;
41
41
  /**
@@ -67,9 +67,9 @@ interface HistoryStep {
67
67
  */
68
68
  choiceIndexMade?: number;
69
69
  /**
70
- * If true, the next dialogue text will be added to the current dialogue text.
70
+ * If true, the current dialogue will be glued to the previous one.
71
71
  */
72
- dialogGlue?: boolean;
72
+ isGlued?: boolean;
73
73
  }
74
74
 
75
75
  export { AdditionalShaSpetsEnum, type HistoryStep as default };
@@ -1,5 +1,5 @@
1
1
  import { GameStepState } from '@drincs/pixi-vn';
2
- import deepDiff from 'deep-diff';
2
+ import deepDiff__default from 'deep-diff';
3
3
  import { Difference } from 'microdiff';
4
4
  import { StorageElementType } from '../../storage/types/StorageElementType.js';
5
5
  import StoredChoiceInterface from './StoredChoiceInterface.js';
@@ -25,7 +25,7 @@ interface HistoryStep {
25
25
  /**
26
26
  * The difference between the previous step and the current step.
27
27
  */
28
- diff?: deepDiff.Diff<GameStepState, GameStepState>[] | Difference[];
28
+ diff?: deepDiff__default.Diff<GameStepState, GameStepState>[] | Difference[];
29
29
  /**
30
30
  * The label id of the current step.
31
31
  */
@@ -35,7 +35,7 @@ interface HistoryStep {
35
35
  */
36
36
  stepSha1: string;
37
37
  /**
38
- * The index of the step in the history.
38
+ * Equivalent to the narration.stepCounter
39
39
  */
40
40
  index: number;
41
41
  /**
@@ -67,9 +67,9 @@ interface HistoryStep {
67
67
  */
68
68
  choiceIndexMade?: number;
69
69
  /**
70
- * If true, the next dialogue text will be added to the current dialogue text.
70
+ * If true, the current dialogue will be glued to the previous one.
71
71
  */
72
- dialogGlue?: boolean;
72
+ isGlued?: boolean;
73
73
  }
74
74
 
75
75
  export { AdditionalShaSpetsEnum, type HistoryStep as default };
@@ -5,7 +5,7 @@ import '@drincs/pixi-vn';
5
5
  import '../types/CloseType.cjs';
6
6
  import '../types/LabelRunModeType.cjs';
7
7
 
8
- interface NarrativeHistory {
8
+ interface NarrationHistory {
9
9
  /**
10
10
  * Dialogue to be shown in the game
11
11
  */
@@ -28,4 +28,4 @@ interface NarrativeHistory {
28
28
  inputValue?: StorageElementType;
29
29
  }
30
30
 
31
- export type { NarrativeHistory as default };
31
+ export type { NarrationHistory as default };
@@ -5,7 +5,7 @@ import '@drincs/pixi-vn';
5
5
  import '../types/CloseType.js';
6
6
  import '../types/LabelRunModeType.js';
7
7
 
8
- interface NarrativeHistory {
8
+ interface NarrationHistory {
9
9
  /**
10
10
  * Dialogue to be shown in the game
11
11
  */
@@ -28,4 +28,4 @@ interface NarrativeHistory {
28
28
  inputValue?: StorageElementType;
29
29
  }
30
30
 
31
- export type { NarrativeHistory as default };
31
+ export type { NarrationHistory as default };
@@ -284,7 +284,7 @@ interface NarrationManagerInterface {
284
284
  * Restore the narration from an object.
285
285
  * @param data The narration in an object.
286
286
  */
287
- restore(data: object, lastHistoryStep: HistoryStep | null): Promise<void>;
287
+ restore(data: object, lastHistoryStep: Omit<HistoryStep, "diff"> | null): Promise<void>;
288
288
  }
289
289
 
290
290
  export type { NarrationManagerInterface as default };
@@ -284,7 +284,7 @@ interface NarrationManagerInterface {
284
284
  * Restore the narration from an object.
285
285
  * @param data The narration in an object.
286
286
  */
287
- restore(data: object, lastHistoryStep: HistoryStep | null): Promise<void>;
287
+ restore(data: object, lastHistoryStep: Omit<HistoryStep, "diff"> | null): Promise<void>;
288
288
  }
289
289
 
290
290
  export type { NarrationManagerInterface as default };