@drincs/pixi-vn 1.5.19 → 1.6.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 (73) hide show
  1. package/dist/{HistoryChoiceMenuOption-BOHqf57l.d.ts → HistoryChoiceMenuOption-BQc_jAe-.d.ts} +2 -7
  2. package/dist/{HistoryChoiceMenuOption-PzBGGqOC.d.cts → HistoryChoiceMenuOption-ok3Zd5pB.d.cts} +2 -7
  3. package/dist/{StoredClassModel-BgRY86sq.d.ts → StoredClassModel-CUrGRJi0.d.cts} +5 -2
  4. package/dist/{StoredClassModel-BgRY86sq.d.cts → StoredClassModel-D-s0mEVj.d.ts} +5 -2
  5. package/dist/canvas.cjs +3 -3
  6. package/dist/canvas.cjs.map +1 -0
  7. package/dist/canvas.d.cts +32 -38
  8. package/dist/canvas.d.ts +32 -38
  9. package/dist/canvas.mjs +3 -3
  10. package/dist/canvas.mjs.map +1 -0
  11. package/dist/characters.cjs +2 -2
  12. package/dist/characters.cjs.map +1 -0
  13. package/dist/characters.d.cts +3 -2
  14. package/dist/characters.d.ts +3 -2
  15. package/dist/characters.mjs +2 -2
  16. package/dist/characters.mjs.map +1 -0
  17. package/dist/chunk-2ZJFDDPE.mjs +2 -0
  18. package/dist/chunk-2ZJFDDPE.mjs.map +1 -0
  19. package/dist/chunk-52EK6LYW.mjs +1 -1
  20. package/dist/chunk-52EK6LYW.mjs.map +1 -0
  21. package/dist/chunk-EC6URLQW.mjs +2 -0
  22. package/dist/chunk-EC6URLQW.mjs.map +1 -0
  23. package/dist/chunk-FIGGUFAM.mjs +2 -0
  24. package/dist/chunk-FIGGUFAM.mjs.map +1 -0
  25. package/dist/chunk-TKYEUKV4.mjs +2 -0
  26. package/dist/chunk-TKYEUKV4.mjs.map +1 -0
  27. package/dist/chunk-UIXKMF72.mjs +2 -0
  28. package/dist/chunk-UIXKMF72.mjs.map +1 -0
  29. package/dist/core.cjs +1 -1
  30. package/dist/core.d.cts +43 -16
  31. package/dist/core.d.ts +43 -16
  32. package/dist/core.mjs +1 -1
  33. package/dist/history.cjs +2 -2
  34. package/dist/history.cjs.map +1 -0
  35. package/dist/history.d.cts +3 -4
  36. package/dist/history.d.ts +3 -4
  37. package/dist/history.mjs +2 -2
  38. package/dist/history.mjs.map +1 -0
  39. package/dist/index.cjs +2 -2
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.d.cts +294 -122
  42. package/dist/index.d.ts +294 -122
  43. package/dist/index.mjs +2 -2
  44. package/dist/index.mjs.map +1 -1
  45. package/dist/motion.cjs.map +1 -1
  46. package/dist/motion.d.cts +18 -0
  47. package/dist/motion.d.ts +18 -0
  48. package/dist/motion.mjs.map +1 -1
  49. package/dist/narration.cjs +3 -3
  50. package/dist/narration.cjs.map +1 -0
  51. package/dist/narration.d.cts +9 -20
  52. package/dist/narration.d.ts +9 -20
  53. package/dist/narration.mjs +3 -3
  54. package/dist/narration.mjs.map +1 -0
  55. package/dist/pixi/browser.js +35 -35
  56. package/dist/sound.cjs +2 -2
  57. package/dist/sound.cjs.map +1 -0
  58. package/dist/sound.d.cts +193 -72
  59. package/dist/sound.d.ts +193 -72
  60. package/dist/sound.mjs +2 -2
  61. package/dist/sound.mjs.map +1 -0
  62. package/dist/storage.cjs +2 -2
  63. package/dist/storage.cjs.map +1 -0
  64. package/dist/storage.d.cts +20 -71
  65. package/dist/storage.d.ts +20 -71
  66. package/dist/storage.mjs +2 -2
  67. package/dist/storage.mjs.map +1 -0
  68. package/package.json +10 -12
  69. package/dist/chunk-46QBDRUK.mjs +0 -2
  70. package/dist/chunk-INJYRMJ3.mjs +0 -2
  71. package/dist/chunk-OXRIVLY2.mjs +0 -2
  72. package/dist/chunk-SOFV7YZ5.mjs +0 -2
  73. package/dist/chunk-XZMYXKAY.mjs +0 -2
@@ -1,5 +1,4 @@
1
- import { ChoiceInterface, StepLabelProps, StepLabelResult, CharacterInterface, GameStepState } from '@drincs/pixi-vn';
2
- import deepDiff from 'deep-diff';
1
+ import { ChoiceInterface, StepLabelProps, StepLabelResult, CharacterInterface } from '@drincs/pixi-vn';
3
2
  import { Difference } from 'microdiff';
4
3
  import { a as StorageElementType } from './StorageElementType-dAIVJeiw.js';
5
4
 
@@ -84,7 +83,7 @@ interface HistoryStep {
84
83
  /**
85
84
  * The difference between the previous step and the current step.
86
85
  */
87
- diff?: deepDiff.Diff<GameStepState, GameStepState>[] | Difference[];
86
+ diff?: Difference[];
88
87
  /**
89
88
  * The label id of the current step.
90
89
  */
@@ -101,10 +100,6 @@ interface HistoryStep {
101
100
  * The data of the step of the label.
102
101
  */
103
102
  labelStepIndex: number | null;
104
- /**
105
- * @deprecated
106
- */
107
- dialoge?: StoredDialogue;
108
103
  /**
109
104
  * Dialogue to be shown in the game
110
105
  */
@@ -1,5 +1,4 @@
1
- import { ChoiceInterface, StepLabelProps, StepLabelResult, CharacterInterface, GameStepState } from '@drincs/pixi-vn';
2
- import deepDiff from 'deep-diff';
1
+ import { ChoiceInterface, StepLabelProps, StepLabelResult, CharacterInterface } from '@drincs/pixi-vn';
3
2
  import { Difference } from 'microdiff';
4
3
  import { a as StorageElementType } from './StorageElementType-dAIVJeiw.cjs';
5
4
 
@@ -84,7 +83,7 @@ interface HistoryStep {
84
83
  /**
85
84
  * The difference between the previous step and the current step.
86
85
  */
87
- diff?: deepDiff.Diff<GameStepState, GameStepState>[] | Difference[];
86
+ diff?: Difference[];
88
87
  /**
89
88
  * The label id of the current step.
90
89
  */
@@ -101,10 +100,6 @@ interface HistoryStep {
101
100
  * The data of the step of the label.
102
101
  */
103
102
  labelStepIndex: number | null;
104
- /**
105
- * @deprecated
106
- */
107
- dialoge?: StoredDialogue;
108
103
  /**
109
104
  * Dialogue to be shown in the game
110
105
  */
@@ -1,3 +1,5 @@
1
+ import { a as StorageElementType } from './StorageElementType-dAIVJeiw.cjs';
2
+
1
3
  /**
2
4
  * StoredClassModel is a abstract class that contains the methods to store a class in the game.
3
5
  * I suggest you extend this class to create your own stored class.
@@ -32,6 +34,7 @@ declare class StoredClassModel {
32
34
  * @param id The id of instance of the class. This id must be unique for the category.
33
35
  */
34
36
  constructor(categoryId: string, id: string);
37
+ protected migrateOldStorage(oldCategoryId?: string): void;
35
38
  /**
36
39
  * Is id of the stored class. is unique for this class.
37
40
  */
@@ -42,14 +45,14 @@ declare class StoredClassModel {
42
45
  * @param propertyName The name of the property to set.
43
46
  * @param value The value to set. If is undefined, the property will be removed from the storage.
44
47
  */
45
- protected setStorageProperty<T>(propertyName: string, value: T | undefined): void;
48
+ protected setStorageProperty<T extends StorageElementType>(propertyName: string, value: T | undefined): void;
46
49
  /**
47
50
  * Get a property from the storage.
48
51
  * @param propertyName The name of the property to get.
49
52
  * @param idToUse The id of the instance to get the property. @default this.id
50
53
  * @returns The value of the property. If the property is not found, returns undefined.
51
54
  */
52
- protected getStorageProperty<T>(propertyName: string, idToUse?: string): T | undefined;
55
+ protected getStorageProperty<T extends StorageElementType>(propertyName: string, idToUse?: string): T | undefined;
53
56
  }
54
57
 
55
58
  export { StoredClassModel as S };
@@ -1,3 +1,5 @@
1
+ import { a as StorageElementType } from './StorageElementType-dAIVJeiw.js';
2
+
1
3
  /**
2
4
  * StoredClassModel is a abstract class that contains the methods to store a class in the game.
3
5
  * I suggest you extend this class to create your own stored class.
@@ -32,6 +34,7 @@ declare class StoredClassModel {
32
34
  * @param id The id of instance of the class. This id must be unique for the category.
33
35
  */
34
36
  constructor(categoryId: string, id: string);
37
+ protected migrateOldStorage(oldCategoryId?: string): void;
35
38
  /**
36
39
  * Is id of the stored class. is unique for this class.
37
40
  */
@@ -42,14 +45,14 @@ declare class StoredClassModel {
42
45
  * @param propertyName The name of the property to set.
43
46
  * @param value The value to set. If is undefined, the property will be removed from the storage.
44
47
  */
45
- protected setStorageProperty<T>(propertyName: string, value: T | undefined): void;
48
+ protected setStorageProperty<T extends StorageElementType>(propertyName: string, value: T | undefined): void;
46
49
  /**
47
50
  * Get a property from the storage.
48
51
  * @param propertyName The name of the property to get.
49
52
  * @param idToUse The id of the instance to get the property. @default this.id
50
53
  * @returns The value of the property. If the property is not found, returns undefined.
51
54
  */
52
- protected getStorageProperty<T>(propertyName: string, idToUse?: string): T | undefined;
55
+ protected getStorageProperty<T extends StorageElementType>(propertyName: string, idToUse?: string): T | undefined;
53
56
  }
54
57
 
55
58
  export { StoredClassModel as S };