@drincs/pixi-vn 0.5.0 → 0.5.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 (67) hide show
  1. package/dist/classes/CharacterBaseModel.js +6 -6
  2. package/dist/classes/CharacterBaseModel.js.map +1 -1
  3. package/dist/classes/CharacterBaseModel.mjs +6 -6
  4. package/dist/classes/CharacterBaseModel.mjs.map +1 -1
  5. package/dist/classes/ChoiceMenuOption.d.mts +17 -4
  6. package/dist/classes/ChoiceMenuOption.d.ts +17 -4
  7. package/dist/classes/ChoiceMenuOption.js +10 -1
  8. package/dist/classes/ChoiceMenuOption.js.map +1 -1
  9. package/dist/classes/ChoiceMenuOption.mjs +10 -1
  10. package/dist/classes/ChoiceMenuOption.mjs.map +1 -1
  11. package/dist/classes/StoredClassModel.js.map +1 -1
  12. package/dist/classes/StoredClassModel.mjs.map +1 -1
  13. package/dist/classes/index.js +6 -6
  14. package/dist/classes/index.js.map +1 -1
  15. package/dist/classes/index.mjs +6 -6
  16. package/dist/classes/index.mjs.map +1 -1
  17. package/dist/classes/ticker/TickerFadeAlpha.js.map +1 -1
  18. package/dist/classes/ticker/TickerFadeAlpha.mjs.map +1 -1
  19. package/dist/classes/ticker/TickerMove.js.map +1 -1
  20. package/dist/classes/ticker/TickerMove.mjs.map +1 -1
  21. package/dist/classes/ticker/TickerRotate.js.map +1 -1
  22. package/dist/classes/ticker/TickerRotate.mjs.map +1 -1
  23. package/dist/classes/ticker/index.js.map +1 -1
  24. package/dist/classes/ticker/index.mjs.map +1 -1
  25. package/dist/constants.d.mts +1 -1
  26. package/dist/constants.d.ts +1 -1
  27. package/dist/constants.js +1 -1
  28. package/dist/constants.js.map +1 -1
  29. package/dist/constants.mjs +1 -1
  30. package/dist/constants.mjs.map +1 -1
  31. package/dist/functions/DialogueUtility.js +47 -17
  32. package/dist/functions/DialogueUtility.js.map +1 -1
  33. package/dist/functions/DialogueUtility.mjs +47 -17
  34. package/dist/functions/DialogueUtility.mjs.map +1 -1
  35. package/dist/functions/FlagsUtility.js.map +1 -1
  36. package/dist/functions/FlagsUtility.mjs.map +1 -1
  37. package/dist/functions/GameUtility.js.map +1 -1
  38. package/dist/functions/GameUtility.mjs.map +1 -1
  39. package/dist/functions/ImageUtility.js.map +1 -1
  40. package/dist/functions/ImageUtility.mjs.map +1 -1
  41. package/dist/functions/SavesUtility.js +25 -7
  42. package/dist/functions/SavesUtility.js.map +1 -1
  43. package/dist/functions/SavesUtility.mjs +25 -7
  44. package/dist/functions/SavesUtility.mjs.map +1 -1
  45. package/dist/functions/index.js +48 -18
  46. package/dist/functions/index.js.map +1 -1
  47. package/dist/functions/index.mjs +48 -18
  48. package/dist/functions/index.mjs.map +1 -1
  49. package/dist/index.js +60 -30
  50. package/dist/index.js.map +1 -1
  51. package/dist/index.mjs +60 -30
  52. package/dist/index.mjs.map +1 -1
  53. package/dist/interface/IDialogueHistory.d.mts +4 -4
  54. package/dist/interface/IDialogueHistory.d.ts +4 -4
  55. package/dist/interface/IHistoryStep.d.mts +2 -2
  56. package/dist/interface/IHistoryStep.d.ts +2 -2
  57. package/dist/managers/StepManager.d.mts +14 -0
  58. package/dist/managers/StepManager.d.ts +14 -0
  59. package/dist/managers/StepManager.js +18 -0
  60. package/dist/managers/StepManager.js.map +1 -1
  61. package/dist/managers/StepManager.mjs +18 -0
  62. package/dist/managers/StepManager.mjs.map +1 -1
  63. package/dist/managers/index.js +24 -6
  64. package/dist/managers/index.js.map +1 -1
  65. package/dist/managers/index.mjs +24 -6
  66. package/dist/managers/index.mjs.map +1 -1
  67. package/package.json +1 -1
@@ -51,6 +51,12 @@ var __async = (__this, __arguments, generator) => {
51
51
  step((generator = generator.apply(__this, __arguments)).next());
52
52
  });
53
53
  };
54
+
55
+ // src/types/PauseType.ts
56
+ var PauseValueType = "pause";
57
+
58
+ // src/types/RepeatType.ts
59
+ var Repeat = "repeat";
54
60
  function getStepSha1(step) {
55
61
  let sha1String = sha1(step.toString().toLocaleLowerCase());
56
62
  return sha1String.toString();
@@ -113,12 +119,6 @@ function getLabelInstanceByClassName(labelName) {
113
119
  }
114
120
  }
115
121
 
116
- // src/types/PauseType.ts
117
- var PauseValueType = "pause";
118
-
119
- // src/types/RepeatType.ts
120
- var Repeat = "repeat";
121
-
122
122
  // src/functions/DialogueUtility.ts
123
123
  function getDialogue() {
124
124
  return GameStorageManager.getVariable(GameStorageManager.keysSystem.CURRENT_DIALOGUE_MEMORY_KEY);
@@ -1858,6 +1858,24 @@ var _GameStepManager = class _GameStepManager {
1858
1858
  return yield _GameStepManager.runCurrentStep(props);
1859
1859
  });
1860
1860
  }
1861
+ /**
1862
+ * When the player is in a choice menu, can use this function to exit to the choice menu.
1863
+ * @param props The props to pass to the step.
1864
+ * @returns StepLabelResultType or undefined.
1865
+ * @example
1866
+ * ```typescript
1867
+ * GameStepManager.exitToChoiceMenu(yourParams).then((result) => {
1868
+ * if (result) {
1869
+ * // your code
1870
+ * }
1871
+ * })
1872
+ * ```
1873
+ */
1874
+ static exitToChoiceMenu(props) {
1875
+ return __async(this, null, function* () {
1876
+ return _GameStepManager.runNextStep(props);
1877
+ });
1878
+ }
1861
1879
  /* After Update Methods */
1862
1880
  // /**
1863
1881
  // * After the update or code edit, some steps or labels may no longer match.