@drincs/pixi-vn 1.3.13 → 1.3.15

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 (83) hide show
  1. package/dist/{classes/index.d.cts → CachedMap-DZLvJAnA.d.cts} +1 -1
  2. package/dist/{classes/index.d.ts → CachedMap-DZLvJAnA.d.ts} +1 -1
  3. package/dist/{OpenedLabel-DxlOwJKw.d.ts → HistoryChoiceMenuOption-BjnxDyK5.d.cts} +47 -2
  4. package/dist/{OpenedLabel-Dgkgemkv.d.cts → HistoryChoiceMenuOption-ZdrL_kYX.d.ts} +47 -2
  5. package/dist/{StorageElementType-DTGcnkzF.d.ts → StorageElementType-dAIVJeiw.d.cts} +1 -1
  6. package/dist/{StorageElementType-DTGcnkzF.d.cts → StorageElementType-dAIVJeiw.d.ts} +1 -1
  7. package/dist/history.cjs +1 -0
  8. package/dist/{history/index.d.ts → history.d.cts} +14 -8
  9. package/dist/{history/index.d.cts → history.d.ts} +14 -8
  10. package/dist/history.mjs +1 -0
  11. package/dist/index.cjs +143 -143
  12. package/dist/index.d.cts +3076 -216
  13. package/dist/index.d.ts +3076 -216
  14. package/dist/index.mjs +143 -143
  15. package/dist/narration.cjs +2 -0
  16. package/dist/{index-_rD16ks5.d.ts → narration.d.cts} +27 -44
  17. package/dist/{index-Bl9hiHQR.d.cts → narration.d.ts} +27 -44
  18. package/dist/narration.mjs +2 -0
  19. package/dist/storage.cjs +1 -0
  20. package/dist/{storage/index.d.ts → storage.d.cts} +75 -6
  21. package/dist/{storage/index.d.cts → storage.d.ts} +75 -6
  22. package/dist/storage.mjs +1 -0
  23. package/dist/unifier.cjs +1 -0
  24. package/dist/unifier.d.cts +230 -0
  25. package/dist/unifier.d.ts +230 -0
  26. package/dist/unifier.mjs +1 -0
  27. package/package.json +29 -2
  28. package/dist/ContainerMemory-CrY9QSo2.d.cts +0 -106
  29. package/dist/ContainerMemory-DrijxCcD.d.ts +0 -106
  30. package/dist/HistoryChoiceMenuOption-Kj_P28ke.d.ts +0 -49
  31. package/dist/HistoryChoiceMenuOption-unaLLfKR.d.cts +0 -49
  32. package/dist/HistoryGameState-i_gx3rGM.d.ts +0 -12
  33. package/dist/HistoryGameState-qeIMl_DH.d.cts +0 -12
  34. package/dist/NarrationGameState-CqDh48n_.d.ts +0 -24
  35. package/dist/NarrationGameState-Cu-OYzph.d.cts +0 -24
  36. package/dist/SoundGameState-BG_iPwjt.d.cts +0 -85
  37. package/dist/SoundGameState-BG_iPwjt.d.ts +0 -85
  38. package/dist/StorageGameState-B2kz-u_2.d.cts +0 -19
  39. package/dist/StorageGameState-Cnfj75sk.d.ts +0 -19
  40. package/dist/StoredClassModel-CjdhvNgB.d.cts +0 -56
  41. package/dist/StoredClassModel-CjdhvNgB.d.ts +0 -56
  42. package/dist/TickersSequence-Cf1Vcu22.d.cts +0 -133
  43. package/dist/TickersSequence-Cf1Vcu22.d.ts +0 -133
  44. package/dist/canvas/index.cjs +0 -3316
  45. package/dist/canvas/index.d.cts +0 -8
  46. package/dist/canvas/index.d.ts +0 -8
  47. package/dist/canvas/index.mjs +0 -3316
  48. package/dist/canvas/tickers/index.cjs +0 -3316
  49. package/dist/canvas/tickers/index.d.cts +0 -467
  50. package/dist/canvas/tickers/index.d.ts +0 -467
  51. package/dist/canvas/tickers/index.mjs +0 -3316
  52. package/dist/character/index.cjs +0 -572
  53. package/dist/character/index.d.cts +0 -3
  54. package/dist/character/index.d.ts +0 -3
  55. package/dist/character/index.mjs +0 -572
  56. package/dist/classes/index.cjs +0 -1
  57. package/dist/classes/index.mjs +0 -1
  58. package/dist/history/index.cjs +0 -1
  59. package/dist/history/index.mjs +0 -1
  60. package/dist/index-B4F3XaWz.d.cts +0 -1767
  61. package/dist/index-Cax-mGq_.d.cts +0 -216
  62. package/dist/index-Cvdua0o-.d.ts +0 -216
  63. package/dist/index-Czfdktw9.d.ts +0 -93
  64. package/dist/index-DZ1shoNp.d.cts +0 -93
  65. package/dist/index-DvpfJ2VQ.d.ts +0 -1767
  66. package/dist/interfaces/index.cjs +0 -1
  67. package/dist/interfaces/index.d.cts +0 -55
  68. package/dist/interfaces/index.d.ts +0 -55
  69. package/dist/interfaces/index.mjs +0 -0
  70. package/dist/narration/index.cjs +0 -573
  71. package/dist/narration/index.d.cts +0 -8
  72. package/dist/narration/index.d.ts +0 -8
  73. package/dist/narration/index.mjs +0 -573
  74. package/dist/sound/index.cjs +0 -572
  75. package/dist/sound/index.d.cts +0 -3
  76. package/dist/sound/index.d.ts +0 -3
  77. package/dist/sound/index.mjs +0 -572
  78. package/dist/storage/index.cjs +0 -1
  79. package/dist/storage/index.mjs +0 -1
  80. package/dist/utils/index.cjs +0 -1
  81. package/dist/utils/index.d.cts +0 -8
  82. package/dist/utils/index.d.ts +0 -8
  83. package/dist/utils/index.mjs +0 -1
@@ -1,56 +0,0 @@
1
- /**
2
- * StoredClassModel is a abstract class that contains the methods to store a class in the game.
3
- * I suggest you extend this class to create your own stored class.
4
- * @example
5
- * ```typescript
6
- * export class CharacterBaseModel extends StoredClassModel implements CharacterBaseModelProps {
7
- * constructor(id: string, props: CharacterBaseModelProps) {
8
- * super("___character___", id)
9
- * this.defaultName = props.name
10
- * this.defaultSurname = props.surname
11
- * }
12
- * private defaultName: string = ""
13
- * get name(): string {
14
- * return this.getStorageProperty<string>("name") || this.defaultName
15
- * }
16
- * set name(value: string) {
17
- * this.setStorageProperty<string>("name", value)
18
- * }
19
- * private defaultSurname?: string
20
- * get surname(): string | undefined {
21
- * return this.getStorageProperty<string>("surname") || this.defaultSurname
22
- * }
23
- * set surname(value: string | undefined) {
24
- * this.setStorageProperty<string>("surname", value)
25
- * }
26
- * }
27
- * ```
28
- */
29
- declare class StoredClassModel {
30
- /**
31
- * @param categoryId The id of the category. For example if you are storing a character class, you can use "characters" as categoryId. so all instances of the character class will be stored in the "characters" category.
32
- * @param id The id of instance of the class. This id must be unique for the category.
33
- */
34
- constructor(categoryId: string, id: string);
35
- private _id;
36
- /**
37
- * Is id of the stored class. is unique for this class.
38
- */
39
- get id(): string;
40
- private categoryId;
41
- /**
42
- * Update a property in the storage.
43
- * @param propertyName The name of the property to set.
44
- * @param value The value to set. If is undefined, the property will be removed from the storage.
45
- */
46
- protected setStorageProperty<T>(propertyName: string, value: T | undefined): void;
47
- /**
48
- * Get a property from the storage.
49
- * @param propertyName The name of the property to get.
50
- * @param idToUse The id of the instance to get the property. @default this.id
51
- * @returns The value of the property. If the property is not found, returns undefined.
52
- */
53
- protected getStorageProperty<T>(propertyName: string, idToUse?: string): T | undefined;
54
- }
55
-
56
- export { StoredClassModel as S };
@@ -1,56 +0,0 @@
1
- /**
2
- * StoredClassModel is a abstract class that contains the methods to store a class in the game.
3
- * I suggest you extend this class to create your own stored class.
4
- * @example
5
- * ```typescript
6
- * export class CharacterBaseModel extends StoredClassModel implements CharacterBaseModelProps {
7
- * constructor(id: string, props: CharacterBaseModelProps) {
8
- * super("___character___", id)
9
- * this.defaultName = props.name
10
- * this.defaultSurname = props.surname
11
- * }
12
- * private defaultName: string = ""
13
- * get name(): string {
14
- * return this.getStorageProperty<string>("name") || this.defaultName
15
- * }
16
- * set name(value: string) {
17
- * this.setStorageProperty<string>("name", value)
18
- * }
19
- * private defaultSurname?: string
20
- * get surname(): string | undefined {
21
- * return this.getStorageProperty<string>("surname") || this.defaultSurname
22
- * }
23
- * set surname(value: string | undefined) {
24
- * this.setStorageProperty<string>("surname", value)
25
- * }
26
- * }
27
- * ```
28
- */
29
- declare class StoredClassModel {
30
- /**
31
- * @param categoryId The id of the category. For example if you are storing a character class, you can use "characters" as categoryId. so all instances of the character class will be stored in the "characters" category.
32
- * @param id The id of instance of the class. This id must be unique for the category.
33
- */
34
- constructor(categoryId: string, id: string);
35
- private _id;
36
- /**
37
- * Is id of the stored class. is unique for this class.
38
- */
39
- get id(): string;
40
- private categoryId;
41
- /**
42
- * Update a property in the storage.
43
- * @param propertyName The name of the property to set.
44
- * @param value The value to set. If is undefined, the property will be removed from the storage.
45
- */
46
- protected setStorageProperty<T>(propertyName: string, value: T | undefined): void;
47
- /**
48
- * Get a property from the storage.
49
- * @param propertyName The name of the property to get.
50
- * @param idToUse The id of the instance to get the property. @default this.id
51
- * @returns The value of the property. If the property is not found, returns undefined.
52
- */
53
- protected getStorageProperty<T>(propertyName: string, idToUse?: string): T | undefined;
54
- }
55
-
56
- export { StoredClassModel as S };
@@ -1,133 +0,0 @@
1
- import { UPDATE_PRIORITY } from 'pixi.js';
2
-
3
- /**
4
- * is a string that represents a ticker id.
5
- * It is used to {@link canvas.tickers} to get the ticker class.
6
- */
7
- type TickerIdType = string;
8
-
9
- interface TickerArgs {
10
- }
11
-
12
- interface Ticker<TArgs extends TickerArgs> {
13
- /**
14
- * Arguments to pass to the ticker
15
- */
16
- args: TArgs;
17
- /**
18
- * Duration in seconds to run the ticker
19
- */
20
- duration?: number;
21
- /**
22
- * Priority of the ticker
23
- */
24
- priority?: UPDATE_PRIORITY;
25
- /**
26
- * Get the id of the ticker. This variable is used in the system to get the ticker by id, {@link RegisteredTickers.getInstance}
27
- */
28
- id: TickerIdType;
29
- /**
30
- * The aliases of the canvas elements that are connected to this ticker
31
- */
32
- canvasElementAliases: string[];
33
- /**
34
- * Completes the animation and applies the final state.
35
- */
36
- complete: (options?: {
37
- ignoreTickerSteps?: boolean;
38
- }) => Promise<void> | void;
39
- /**
40
- * Stops the animation at its current state, and prevents it from resuming when the animation is played again.
41
- */
42
- stop: () => void;
43
- /**
44
- * Starts the ticker. This will start the ticker and begin the animation.
45
- * @param id The id of the ticker.
46
- */
47
- start: (id: string) => void;
48
- /**
49
- * Pauses the animation.
50
- */
51
- pause: () => void;
52
- /**
53
- * Plays the animation.
54
- */
55
- play: () => void;
56
- /**
57
- * Checks if the ticker is paused.
58
- * @returns true if the ticker is paused, false otherwise.
59
- */
60
- readonly paused: boolean;
61
- }
62
-
63
- /**
64
- * TickerHistory is a class that contains the name of a class and the arguments that were used to create it.
65
- */
66
- interface TickerInfo<TArgs extends TickerArgs> {
67
- /**
68
- * If this ticker was created by steps
69
- */
70
- createdByTicketSteps?: {
71
- canvasElementAlias: string;
72
- id: string;
73
- };
74
- ticker: Ticker<TArgs>;
75
- }
76
- interface TickerHistory<TArgs extends TickerArgs> {
77
- id: TickerIdType;
78
- args: TArgs;
79
- /**
80
- * The aliases of the canvas elements that are connected to this ticker
81
- */
82
- canvasElementAliases: string[];
83
- priority?: UPDATE_PRIORITY;
84
- duration?: number;
85
- paused?: boolean;
86
- }
87
-
88
- type PauseType = {
89
- /**
90
- * The type of the value
91
- */
92
- type: "pause";
93
- /**
94
- * Duration in seconds
95
- */
96
- duration: number;
97
- };
98
-
99
- type RepeatType = "repeat";
100
-
101
- interface TickersStep<TArgs extends TickerArgs> {
102
- /**
103
- * Ticker class name
104
- */
105
- ticker: string;
106
- /**
107
- * Duration in seconds. If is undefined, the step will end only when the animation is finished.
108
- */
109
- duration?: number;
110
- /**
111
- * Arguments to pass to the ticker
112
- */
113
- args: TArgs;
114
- /**
115
- * Priority of the ticker
116
- */
117
- priority?: UPDATE_PRIORITY;
118
- }
119
- /**
120
- * The steps of the tickers
121
- */
122
- interface TickersSequence {
123
- /**
124
- * The step number
125
- */
126
- currentStepNumber: number;
127
- /**
128
- * The steps of the tickers
129
- */
130
- steps: (TickersStep<any> | RepeatType | PauseType)[];
131
- }
132
-
133
- export type { PauseType as P, RepeatType as R, Ticker as T, TickerArgs as a, TickerHistory as b, TickerInfo as c, TickersSequence as d, TickerIdType as e };
@@ -1,133 +0,0 @@
1
- import { UPDATE_PRIORITY } from 'pixi.js';
2
-
3
- /**
4
- * is a string that represents a ticker id.
5
- * It is used to {@link canvas.tickers} to get the ticker class.
6
- */
7
- type TickerIdType = string;
8
-
9
- interface TickerArgs {
10
- }
11
-
12
- interface Ticker<TArgs extends TickerArgs> {
13
- /**
14
- * Arguments to pass to the ticker
15
- */
16
- args: TArgs;
17
- /**
18
- * Duration in seconds to run the ticker
19
- */
20
- duration?: number;
21
- /**
22
- * Priority of the ticker
23
- */
24
- priority?: UPDATE_PRIORITY;
25
- /**
26
- * Get the id of the ticker. This variable is used in the system to get the ticker by id, {@link RegisteredTickers.getInstance}
27
- */
28
- id: TickerIdType;
29
- /**
30
- * The aliases of the canvas elements that are connected to this ticker
31
- */
32
- canvasElementAliases: string[];
33
- /**
34
- * Completes the animation and applies the final state.
35
- */
36
- complete: (options?: {
37
- ignoreTickerSteps?: boolean;
38
- }) => Promise<void> | void;
39
- /**
40
- * Stops the animation at its current state, and prevents it from resuming when the animation is played again.
41
- */
42
- stop: () => void;
43
- /**
44
- * Starts the ticker. This will start the ticker and begin the animation.
45
- * @param id The id of the ticker.
46
- */
47
- start: (id: string) => void;
48
- /**
49
- * Pauses the animation.
50
- */
51
- pause: () => void;
52
- /**
53
- * Plays the animation.
54
- */
55
- play: () => void;
56
- /**
57
- * Checks if the ticker is paused.
58
- * @returns true if the ticker is paused, false otherwise.
59
- */
60
- readonly paused: boolean;
61
- }
62
-
63
- /**
64
- * TickerHistory is a class that contains the name of a class and the arguments that were used to create it.
65
- */
66
- interface TickerInfo<TArgs extends TickerArgs> {
67
- /**
68
- * If this ticker was created by steps
69
- */
70
- createdByTicketSteps?: {
71
- canvasElementAlias: string;
72
- id: string;
73
- };
74
- ticker: Ticker<TArgs>;
75
- }
76
- interface TickerHistory<TArgs extends TickerArgs> {
77
- id: TickerIdType;
78
- args: TArgs;
79
- /**
80
- * The aliases of the canvas elements that are connected to this ticker
81
- */
82
- canvasElementAliases: string[];
83
- priority?: UPDATE_PRIORITY;
84
- duration?: number;
85
- paused?: boolean;
86
- }
87
-
88
- type PauseType = {
89
- /**
90
- * The type of the value
91
- */
92
- type: "pause";
93
- /**
94
- * Duration in seconds
95
- */
96
- duration: number;
97
- };
98
-
99
- type RepeatType = "repeat";
100
-
101
- interface TickersStep<TArgs extends TickerArgs> {
102
- /**
103
- * Ticker class name
104
- */
105
- ticker: string;
106
- /**
107
- * Duration in seconds. If is undefined, the step will end only when the animation is finished.
108
- */
109
- duration?: number;
110
- /**
111
- * Arguments to pass to the ticker
112
- */
113
- args: TArgs;
114
- /**
115
- * Priority of the ticker
116
- */
117
- priority?: UPDATE_PRIORITY;
118
- }
119
- /**
120
- * The steps of the tickers
121
- */
122
- interface TickersSequence {
123
- /**
124
- * The step number
125
- */
126
- currentStepNumber: number;
127
- /**
128
- * The steps of the tickers
129
- */
130
- steps: (TickersStep<any> | RepeatType | PauseType)[];
131
- }
132
-
133
- export type { PauseType as P, RepeatType as R, Ticker as T, TickerArgs as a, TickerHistory as b, TickerInfo as c, TickersSequence as d, TickerIdType as e };