@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.
Files changed (142) hide show
  1. package/dist/classes/CharacterBaseModel.js +110 -112
  2. package/dist/classes/CharacterBaseModel.js.map +1 -1
  3. package/dist/classes/CharacterBaseModel.mjs +110 -112
  4. package/dist/classes/CharacterBaseModel.mjs.map +1 -1
  5. package/dist/classes/ChoiceMenuOption.d.mts +19 -7
  6. package/dist/classes/ChoiceMenuOption.d.ts +19 -7
  7. package/dist/classes/ChoiceMenuOption.js +1386 -7
  8. package/dist/classes/ChoiceMenuOption.js.map +1 -1
  9. package/dist/classes/ChoiceMenuOption.mjs +1386 -7
  10. package/dist/classes/ChoiceMenuOption.mjs.map +1 -1
  11. package/dist/classes/CloseLabel.d.mts +8 -3
  12. package/dist/classes/CloseLabel.d.ts +8 -3
  13. package/dist/classes/CloseLabel.js +44 -2
  14. package/dist/classes/CloseLabel.js.map +1 -1
  15. package/dist/classes/CloseLabel.mjs +41 -2
  16. package/dist/classes/CloseLabel.mjs.map +1 -1
  17. package/dist/classes/Label.d.mts +47 -21
  18. package/dist/classes/Label.d.ts +47 -21
  19. package/dist/classes/Label.js +36 -1
  20. package/dist/classes/Label.js.map +1 -1
  21. package/dist/classes/Label.mjs +36 -1
  22. package/dist/classes/Label.mjs.map +1 -1
  23. package/dist/classes/StoredClassModel.js +55 -57
  24. package/dist/classes/StoredClassModel.js.map +1 -1
  25. package/dist/classes/StoredClassModel.mjs +55 -57
  26. package/dist/classes/StoredClassModel.mjs.map +1 -1
  27. package/dist/classes/index.d.mts +2 -2
  28. package/dist/classes/index.d.ts +2 -2
  29. package/dist/classes/index.js +125 -73
  30. package/dist/classes/index.js.map +1 -1
  31. package/dist/classes/index.mjs +125 -73
  32. package/dist/classes/index.mjs.map +1 -1
  33. package/dist/classes/ticker/TickerFadeAlpha.js +27 -27
  34. package/dist/classes/ticker/TickerFadeAlpha.js.map +1 -1
  35. package/dist/classes/ticker/TickerFadeAlpha.mjs +27 -27
  36. package/dist/classes/ticker/TickerFadeAlpha.mjs.map +1 -1
  37. package/dist/classes/ticker/TickerMove.js +57 -55
  38. package/dist/classes/ticker/TickerMove.js.map +1 -1
  39. package/dist/classes/ticker/TickerMove.mjs +57 -55
  40. package/dist/classes/ticker/TickerMove.mjs.map +1 -1
  41. package/dist/classes/ticker/TickerRotate.js +57 -55
  42. package/dist/classes/ticker/TickerRotate.js.map +1 -1
  43. package/dist/classes/ticker/TickerRotate.mjs +57 -55
  44. package/dist/classes/ticker/TickerRotate.mjs.map +1 -1
  45. package/dist/classes/ticker/index.js +17 -17
  46. package/dist/classes/ticker/index.js.map +1 -1
  47. package/dist/classes/ticker/index.mjs +17 -17
  48. package/dist/classes/ticker/index.mjs.map +1 -1
  49. package/dist/constants.d.mts +1 -1
  50. package/dist/constants.d.ts +1 -1
  51. package/dist/constants.js +1 -1
  52. package/dist/constants.js.map +1 -1
  53. package/dist/constants.mjs +1 -1
  54. package/dist/constants.mjs.map +1 -1
  55. package/dist/decorators/LabelDecorator.d.mts +13 -20
  56. package/dist/decorators/LabelDecorator.d.ts +13 -20
  57. package/dist/decorators/LabelDecorator.js +1388 -28
  58. package/dist/decorators/LabelDecorator.js.map +1 -1
  59. package/dist/decorators/LabelDecorator.mjs +1388 -25
  60. package/dist/decorators/LabelDecorator.mjs.map +1 -1
  61. package/dist/decorators/index.d.mts +4 -4
  62. package/dist/decorators/index.d.ts +4 -4
  63. package/dist/decorators/index.js +1385 -13
  64. package/dist/decorators/index.js.map +1 -1
  65. package/dist/decorators/index.mjs +1384 -13
  66. package/dist/decorators/index.mjs.map +1 -1
  67. package/dist/functions/DialogueUtility.d.mts +7 -7
  68. package/dist/functions/DialogueUtility.d.ts +7 -7
  69. package/dist/functions/DialogueUtility.js +97 -67
  70. package/dist/functions/DialogueUtility.js.map +1 -1
  71. package/dist/functions/DialogueUtility.mjs +97 -67
  72. package/dist/functions/DialogueUtility.mjs.map +1 -1
  73. package/dist/functions/FlagsUtility.js +55 -57
  74. package/dist/functions/FlagsUtility.js.map +1 -1
  75. package/dist/functions/FlagsUtility.mjs +55 -57
  76. package/dist/functions/FlagsUtility.mjs.map +1 -1
  77. package/dist/functions/GameUtility.js +55 -57
  78. package/dist/functions/GameUtility.js.map +1 -1
  79. package/dist/functions/GameUtility.mjs +55 -57
  80. package/dist/functions/GameUtility.mjs.map +1 -1
  81. package/dist/functions/ImageUtility.js +17 -17
  82. package/dist/functions/ImageUtility.js.map +1 -1
  83. package/dist/functions/ImageUtility.mjs +17 -17
  84. package/dist/functions/ImageUtility.mjs.map +1 -1
  85. package/dist/functions/SavesUtility.d.mts +2 -2
  86. package/dist/functions/SavesUtility.d.ts +2 -2
  87. package/dist/functions/SavesUtility.js +115 -143
  88. package/dist/functions/SavesUtility.js.map +1 -1
  89. package/dist/functions/SavesUtility.mjs +115 -143
  90. package/dist/functions/SavesUtility.mjs.map +1 -1
  91. package/dist/functions/StepLabelUtility.d.mts +0 -1
  92. package/dist/functions/StepLabelUtility.d.ts +0 -1
  93. package/dist/functions/index.d.mts +4 -4
  94. package/dist/functions/index.d.ts +4 -4
  95. package/dist/functions/index.js +98 -68
  96. package/dist/functions/index.js.map +1 -1
  97. package/dist/functions/index.mjs +98 -68
  98. package/dist/functions/index.mjs.map +1 -1
  99. package/dist/index.d.mts +3 -3
  100. package/dist/index.d.ts +3 -3
  101. package/dist/index.js +361 -327
  102. package/dist/index.js.map +1 -1
  103. package/dist/index.mjs +360 -327
  104. package/dist/index.mjs.map +1 -1
  105. package/dist/interface/{IDialogueHistory.d.mts → DialogueHistory.d.mts} +5 -5
  106. package/dist/interface/{IDialogueHistory.d.ts → DialogueHistory.d.ts} +5 -5
  107. package/dist/interface/{IDialogueHistory.js → DialogueHistory.js} +1 -1
  108. package/dist/interface/DialogueHistory.mjs +3 -0
  109. package/dist/interface/IHistoryStep.d.mts +2 -2
  110. package/dist/interface/IHistoryStep.d.ts +2 -2
  111. package/dist/interface/ISaveData.d.mts +2 -2
  112. package/dist/interface/ISaveData.d.ts +2 -2
  113. package/dist/interface/export/ExportedStep.d.mts +2 -2
  114. package/dist/interface/export/ExportedStep.d.ts +2 -2
  115. package/dist/interface/export/index.d.mts +2 -2
  116. package/dist/interface/export/index.d.ts +2 -2
  117. package/dist/interface/index.d.mts +6 -6
  118. package/dist/interface/index.d.ts +6 -6
  119. package/dist/managers/StepManager.d.mts +12 -12
  120. package/dist/managers/StepManager.d.ts +12 -12
  121. package/dist/managers/StepManager.js +55 -81
  122. package/dist/managers/StepManager.js.map +1 -1
  123. package/dist/managers/StepManager.mjs +55 -81
  124. package/dist/managers/StepManager.mjs.map +1 -1
  125. package/dist/managers/WindowManager.d.mts +1 -1
  126. package/dist/managers/WindowManager.d.ts +1 -1
  127. package/dist/managers/index.d.mts +2 -2
  128. package/dist/managers/index.d.ts +2 -2
  129. package/dist/managers/index.js +114 -142
  130. package/dist/managers/index.js.map +1 -1
  131. package/dist/managers/index.mjs +114 -142
  132. package/dist/managers/index.mjs.map +1 -1
  133. package/dist/types/ChoiceMenuOptionsType.d.mts +3 -3
  134. package/dist/types/ChoiceMenuOptionsType.d.ts +3 -3
  135. package/dist/types/StepLabelType.d.mts +2 -3
  136. package/dist/types/StepLabelType.d.ts +2 -3
  137. package/dist/types/index.d.mts +1 -1
  138. package/dist/types/index.d.ts +1 -1
  139. package/package.json +2 -2
  140. package/dist/interface/IDialogueHistory.mjs +0 -3
  141. /package/dist/interface/{IDialogueHistory.js.map → DialogueHistory.js.map} +0 -0
  142. /package/dist/interface/{IDialogueHistory.mjs.map → DialogueHistory.mjs.map} +0 -0
@@ -1,3 +1,3 @@
1
- declare const PIXIVN_VERSION = "0.5.2";
1
+ declare const PIXIVN_VERSION = "0.5.4";
2
2
 
3
3
  export { PIXIVN_VERSION };
@@ -1,3 +1,3 @@
1
- declare const PIXIVN_VERSION = "0.5.2";
1
+ declare const PIXIVN_VERSION = "0.5.4";
2
2
 
3
3
  export { PIXIVN_VERSION };
package/dist/constants.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  // src/constants.ts
4
- var PIXIVN_VERSION = "0.5.2";
4
+ var PIXIVN_VERSION = "0.5.4";
5
5
 
6
6
  exports.PIXIVN_VERSION = PIXIVN_VERSION;
7
7
  //# sourceMappingURL=out.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/constants.ts"],"names":[],"mappings":";AAAO,IAAM,iBAAiB","sourcesContent":["export const PIXIVN_VERSION = '0.5.2'"]}
1
+ {"version":3,"sources":["../src/constants.ts"],"names":[],"mappings":";AAAO,IAAM,iBAAiB","sourcesContent":["export const PIXIVN_VERSION = '0.5.4'"]}
@@ -1,5 +1,5 @@
1
1
  // src/constants.ts
2
- var PIXIVN_VERSION = "0.5.2";
2
+ var PIXIVN_VERSION = "0.5.4";
3
3
 
4
4
  export { PIXIVN_VERSION };
5
5
  //# sourceMappingURL=out.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/constants.ts"],"names":[],"mappings":";AAAO,IAAM,iBAAiB","sourcesContent":["export const PIXIVN_VERSION = '0.5.2'"]}
1
+ {"version":3,"sources":["../src/constants.ts"],"names":[],"mappings":";AAAO,IAAM,iBAAiB","sourcesContent":["export const PIXIVN_VERSION = '0.5.4'"]}
@@ -1,32 +1,25 @@
1
+ import { StepLabelType } from '../types/StepLabelType.mjs';
1
2
  import { LabelIdType } from '../types/LabelIdType.mjs';
2
3
  import Label from '../classes/Label.mjs';
3
- import '../types/StepLabelType.mjs';
4
4
  import '@drincs/pixi-vn/dist/override';
5
- import '../types/StorageElementType.mjs';
6
5
  import '../types/StepHistoryDataType.mjs';
7
6
 
8
7
  declare const registeredLabels: {
9
- [key: LabelIdType]: typeof Label;
8
+ [key: LabelIdType]: Label<any>;
10
9
  };
11
10
  /**
12
- * Is a decorator that register a label in the game.
13
- * Is a required decorator for use the label in the game.
14
- * Thanks to this decoration the game has the possibility of updating the labels to the latest modification and saving the game.
15
- * @param name is th identifier of the label, by default is the name of the class
16
- * @returns
11
+ * Creates a new label and registers it in the system
12
+ * @param id The id of the label, it must be unique
13
+ * @param steps The steps of the label
14
+ * @param onStepRun is a function that will be executed before any step is executed, is useful for example to make sure all images used have been cached
15
+ * @returns The created label
17
16
  */
18
- declare function labelDecorator(name?: LabelIdType): (target: typeof Label) => void;
17
+ declare function newLabel<T extends {} = {}>(id: LabelIdType, steps: StepLabelType<T>[], onStepRun?: () => void | Promise<void>): Label<T>;
19
18
  /**
20
- * is a function that returns the type of the label
21
- * @param labelName is the name of the label
22
- * @returns the label type
19
+ * Gets a label by its id
20
+ * @param id The id of the label
21
+ * @returns The label or undefined if it does not exist
23
22
  */
24
- declare function getLabelTypeByClassName<T extends typeof Label>(labelName: LabelIdType): T | undefined;
25
- /**
26
- * is a function that returns the instance of the label
27
- * @param labelName is the name of the label
28
- * @returns the label
29
- */
30
- declare function getLabelInstanceByClassName<T extends Label>(labelName: LabelIdType): T | undefined;
23
+ declare function getLabelById<T = Label<any>>(id: LabelIdType): T | undefined;
31
24
 
32
- export { labelDecorator as default, getLabelInstanceByClassName, getLabelTypeByClassName, registeredLabels };
25
+ export { getLabelById, newLabel, registeredLabels };
@@ -1,32 +1,25 @@
1
+ import { StepLabelType } from '../types/StepLabelType.js';
1
2
  import { LabelIdType } from '../types/LabelIdType.js';
2
3
  import Label from '../classes/Label.js';
3
- import '../types/StepLabelType.js';
4
4
  import '@drincs/pixi-vn/dist/override';
5
- import '../types/StorageElementType.js';
6
5
  import '../types/StepHistoryDataType.js';
7
6
 
8
7
  declare const registeredLabels: {
9
- [key: LabelIdType]: typeof Label;
8
+ [key: LabelIdType]: Label<any>;
10
9
  };
11
10
  /**
12
- * Is a decorator that register a label in the game.
13
- * Is a required decorator for use the label in the game.
14
- * Thanks to this decoration the game has the possibility of updating the labels to the latest modification and saving the game.
15
- * @param name is th identifier of the label, by default is the name of the class
16
- * @returns
11
+ * Creates a new label and registers it in the system
12
+ * @param id The id of the label, it must be unique
13
+ * @param steps The steps of the label
14
+ * @param onStepRun is a function that will be executed before any step is executed, is useful for example to make sure all images used have been cached
15
+ * @returns The created label
17
16
  */
18
- declare function labelDecorator(name?: LabelIdType): (target: typeof Label) => void;
17
+ declare function newLabel<T extends {} = {}>(id: LabelIdType, steps: StepLabelType<T>[], onStepRun?: () => void | Promise<void>): Label<T>;
19
18
  /**
20
- * is a function that returns the type of the label
21
- * @param labelName is the name of the label
22
- * @returns the label type
19
+ * Gets a label by its id
20
+ * @param id The id of the label
21
+ * @returns The label or undefined if it does not exist
23
22
  */
24
- declare function getLabelTypeByClassName<T extends typeof Label>(labelName: LabelIdType): T | undefined;
25
- /**
26
- * is a function that returns the instance of the label
27
- * @param labelName is the name of the label
28
- * @returns the label
29
- */
30
- declare function getLabelInstanceByClassName<T extends Label>(labelName: LabelIdType): T | undefined;
23
+ declare function getLabelById<T = Label<any>>(id: LabelIdType): T | undefined;
31
24
 
32
- export { labelDecorator as default, getLabelInstanceByClassName, getLabelTypeByClassName, registeredLabels };
25
+ export { getLabelById, newLabel, registeredLabels };