@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.
- package/dist/{classes/index.d.cts → CachedMap-DZLvJAnA.d.cts} +1 -1
- package/dist/{classes/index.d.ts → CachedMap-DZLvJAnA.d.ts} +1 -1
- package/dist/{OpenedLabel-DxlOwJKw.d.ts → HistoryChoiceMenuOption-BjnxDyK5.d.cts} +47 -2
- package/dist/{OpenedLabel-Dgkgemkv.d.cts → HistoryChoiceMenuOption-ZdrL_kYX.d.ts} +47 -2
- package/dist/{StorageElementType-DTGcnkzF.d.ts → StorageElementType-dAIVJeiw.d.cts} +1 -1
- package/dist/{StorageElementType-DTGcnkzF.d.cts → StorageElementType-dAIVJeiw.d.ts} +1 -1
- package/dist/history.cjs +1 -0
- package/dist/{history/index.d.ts → history.d.cts} +14 -8
- package/dist/{history/index.d.cts → history.d.ts} +14 -8
- package/dist/history.mjs +1 -0
- package/dist/index.cjs +143 -143
- package/dist/index.d.cts +3076 -216
- package/dist/index.d.ts +3076 -216
- package/dist/index.mjs +143 -143
- package/dist/narration.cjs +2 -0
- package/dist/{index-_rD16ks5.d.ts → narration.d.cts} +27 -44
- package/dist/{index-Bl9hiHQR.d.cts → narration.d.ts} +27 -44
- package/dist/narration.mjs +2 -0
- package/dist/storage.cjs +1 -0
- package/dist/{storage/index.d.ts → storage.d.cts} +75 -6
- package/dist/{storage/index.d.cts → storage.d.ts} +75 -6
- package/dist/storage.mjs +1 -0
- package/dist/unifier.cjs +1 -0
- package/dist/unifier.d.cts +230 -0
- package/dist/unifier.d.ts +230 -0
- package/dist/unifier.mjs +1 -0
- package/package.json +29 -2
- package/dist/ContainerMemory-CrY9QSo2.d.cts +0 -106
- package/dist/ContainerMemory-DrijxCcD.d.ts +0 -106
- package/dist/HistoryChoiceMenuOption-Kj_P28ke.d.ts +0 -49
- package/dist/HistoryChoiceMenuOption-unaLLfKR.d.cts +0 -49
- package/dist/HistoryGameState-i_gx3rGM.d.ts +0 -12
- package/dist/HistoryGameState-qeIMl_DH.d.cts +0 -12
- package/dist/NarrationGameState-CqDh48n_.d.ts +0 -24
- package/dist/NarrationGameState-Cu-OYzph.d.cts +0 -24
- package/dist/SoundGameState-BG_iPwjt.d.cts +0 -85
- package/dist/SoundGameState-BG_iPwjt.d.ts +0 -85
- package/dist/StorageGameState-B2kz-u_2.d.cts +0 -19
- package/dist/StorageGameState-Cnfj75sk.d.ts +0 -19
- package/dist/StoredClassModel-CjdhvNgB.d.cts +0 -56
- package/dist/StoredClassModel-CjdhvNgB.d.ts +0 -56
- package/dist/TickersSequence-Cf1Vcu22.d.cts +0 -133
- package/dist/TickersSequence-Cf1Vcu22.d.ts +0 -133
- package/dist/canvas/index.cjs +0 -3316
- package/dist/canvas/index.d.cts +0 -8
- package/dist/canvas/index.d.ts +0 -8
- package/dist/canvas/index.mjs +0 -3316
- package/dist/canvas/tickers/index.cjs +0 -3316
- package/dist/canvas/tickers/index.d.cts +0 -467
- package/dist/canvas/tickers/index.d.ts +0 -467
- package/dist/canvas/tickers/index.mjs +0 -3316
- package/dist/character/index.cjs +0 -572
- package/dist/character/index.d.cts +0 -3
- package/dist/character/index.d.ts +0 -3
- package/dist/character/index.mjs +0 -572
- package/dist/classes/index.cjs +0 -1
- package/dist/classes/index.mjs +0 -1
- package/dist/history/index.cjs +0 -1
- package/dist/history/index.mjs +0 -1
- package/dist/index-B4F3XaWz.d.cts +0 -1767
- package/dist/index-Cax-mGq_.d.cts +0 -216
- package/dist/index-Cvdua0o-.d.ts +0 -216
- package/dist/index-Czfdktw9.d.ts +0 -93
- package/dist/index-DZ1shoNp.d.cts +0 -93
- package/dist/index-DvpfJ2VQ.d.ts +0 -1767
- package/dist/interfaces/index.cjs +0 -1
- package/dist/interfaces/index.d.cts +0 -55
- package/dist/interfaces/index.d.ts +0 -55
- package/dist/interfaces/index.mjs +0 -0
- package/dist/narration/index.cjs +0 -573
- package/dist/narration/index.d.cts +0 -8
- package/dist/narration/index.d.ts +0 -8
- package/dist/narration/index.mjs +0 -573
- package/dist/sound/index.cjs +0 -572
- package/dist/sound/index.d.cts +0 -3
- package/dist/sound/index.d.ts +0 -3
- package/dist/sound/index.mjs +0 -572
- package/dist/storage/index.cjs +0 -1
- package/dist/storage/index.mjs +0 -1
- package/dist/utils/index.cjs +0 -1
- package/dist/utils/index.d.cts +0 -8
- package/dist/utils/index.d.ts +0 -8
- package/dist/utils/index.mjs +0 -1
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { S as StoredClassModel } from './StoredClassModel-CjdhvNgB.cjs';
|
|
2
|
-
import { CharacterInterface as CharacterInterface$1 } from '@drincs/pixi-vn';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* CharacterBaseModelProps is an interface that is used to create a character model.
|
|
6
|
-
*/
|
|
7
|
-
interface CharacterBaseModelProps {
|
|
8
|
-
/**
|
|
9
|
-
* The name of the character.
|
|
10
|
-
*/
|
|
11
|
-
name?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The surname of the character.
|
|
14
|
-
*/
|
|
15
|
-
surname?: string;
|
|
16
|
-
/**
|
|
17
|
-
* The age of the character.
|
|
18
|
-
*/
|
|
19
|
-
age?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The icon of the character.
|
|
22
|
-
*/
|
|
23
|
-
icon?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The color of the character.
|
|
26
|
-
*/
|
|
27
|
-
color?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare class CharacterStoredClass extends StoredClassModel {
|
|
31
|
-
private sourceId;
|
|
32
|
-
constructor(id: string, emotion?: string);
|
|
33
|
-
getStorageProperty<T>(propertyName: string): T | undefined;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* CharacterBaseModel is a class that is used to create a character model.
|
|
38
|
-
* You must use the {@link RegisteredCharacters.add} function to save the character in the game.
|
|
39
|
-
* It is raccomended to create your own class Character, read more here: https://pixi-vn.web.app/start/character.html#custom-character
|
|
40
|
-
* @example
|
|
41
|
-
* ```typescript
|
|
42
|
-
* export const liam = new CharacterBaseModel('liam', {
|
|
43
|
-
* name: 'Liam',
|
|
44
|
-
* surname: 'Smith',
|
|
45
|
-
* age: 25,
|
|
46
|
-
* icon: "https://pixijs.com/assets/eggHead.png",
|
|
47
|
-
* color: "#9e2e12"
|
|
48
|
-
* });
|
|
49
|
-
* export const alice = new CharacterBaseModel('alice', {
|
|
50
|
-
* name: 'Alice',
|
|
51
|
-
* surname: 'Smith',
|
|
52
|
-
* age: 25,
|
|
53
|
-
* icon: "https://pixijs.com/assets/eggHead.png",
|
|
54
|
-
* color: "#9e2e12"
|
|
55
|
-
* });
|
|
56
|
-
* RegisteredCharacters.add([liam, alice]);
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
declare class CharacterBaseModel extends CharacterStoredClass {
|
|
60
|
-
/**
|
|
61
|
-
* @param id The id of the character.
|
|
62
|
-
* @param props The properties of the character.
|
|
63
|
-
*/
|
|
64
|
-
constructor(id: string | {
|
|
65
|
-
id: string;
|
|
66
|
-
emotion: string;
|
|
67
|
-
}, props: CharacterBaseModelProps);
|
|
68
|
-
private defaultName?;
|
|
69
|
-
/***
|
|
70
|
-
* The name of the character.
|
|
71
|
-
* If you set undefined, it will return the default name.
|
|
72
|
-
*/
|
|
73
|
-
get name(): string;
|
|
74
|
-
set name(value: string | undefined);
|
|
75
|
-
private defaultSurname?;
|
|
76
|
-
/**
|
|
77
|
-
* The surname of the character.
|
|
78
|
-
* If you set undefined, it will return the default surname.
|
|
79
|
-
*/
|
|
80
|
-
get surname(): string | undefined;
|
|
81
|
-
set surname(value: string | undefined);
|
|
82
|
-
private defaultAge?;
|
|
83
|
-
/**
|
|
84
|
-
* The age of the character.
|
|
85
|
-
* If you set undefined, it will return the default age.
|
|
86
|
-
*/
|
|
87
|
-
get age(): number | undefined;
|
|
88
|
-
set age(value: number | undefined);
|
|
89
|
-
private _icon?;
|
|
90
|
-
/**
|
|
91
|
-
* The icon of the character.
|
|
92
|
-
*/
|
|
93
|
-
get icon(): string | undefined;
|
|
94
|
-
private _color?;
|
|
95
|
-
/**
|
|
96
|
-
* The color of the character.
|
|
97
|
-
*/
|
|
98
|
-
get color(): string | undefined;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
declare namespace RegisteredCharacters {
|
|
102
|
-
/**
|
|
103
|
-
* is a function that returns the character by the id
|
|
104
|
-
* @param id is the id of the character
|
|
105
|
-
* @returns the character
|
|
106
|
-
* @example
|
|
107
|
-
* ```typescript
|
|
108
|
-
* const liam = RegisteredCharacters.get('liam');
|
|
109
|
-
* ```
|
|
110
|
-
*/
|
|
111
|
-
function get<T = CharacterInterface$1>(id: string): T | undefined;
|
|
112
|
-
/**
|
|
113
|
-
* Is a function that saves the character. If the character already exists, it will be overwritten.
|
|
114
|
-
* @param character is the character to save
|
|
115
|
-
* @returns
|
|
116
|
-
* @example
|
|
117
|
-
* ```typescript
|
|
118
|
-
* export const liam = new CharacterBaseModel('liam', { name: 'Liam'});
|
|
119
|
-
* export const alice = new CharacterBaseModel('alice', { name: 'Alice'});
|
|
120
|
-
* RegisteredCharacters.add([liam, alice]);
|
|
121
|
-
* ```
|
|
122
|
-
*/
|
|
123
|
-
function add(character: CharacterInterface$1 | CharacterInterface$1[]): void;
|
|
124
|
-
/**
|
|
125
|
-
* is a function that returns all characters
|
|
126
|
-
* @returns all characters
|
|
127
|
-
* @example
|
|
128
|
-
* ```typescript
|
|
129
|
-
* const allCharacters = RegisteredCharacters.values();
|
|
130
|
-
* ```
|
|
131
|
-
*/
|
|
132
|
-
function values<T extends CharacterInterface$1>(): T[];
|
|
133
|
-
/**
|
|
134
|
-
* Check if a character is registered.
|
|
135
|
-
* @param id is the id of the character
|
|
136
|
-
* @returns true if the character exists, false otherwise
|
|
137
|
-
*/
|
|
138
|
-
function has(id: string): boolean;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* CharacterInterface is the interface that character must implement or extend.
|
|
143
|
-
* So if you want to create your own Character, you must override this interface, implement or extend it and extend the {@link CharacterStoredClass} class.
|
|
144
|
-
* You can override this interface to add your own props.
|
|
145
|
-
* @example
|
|
146
|
-
* ```typescript
|
|
147
|
-
* // pixi-vn.d.ts
|
|
148
|
-
* declare module '@drincs/pixi-vn' {
|
|
149
|
-
* interface CharacterInterface {
|
|
150
|
-
* name: string
|
|
151
|
-
* surname?: string
|
|
152
|
-
* age?: number
|
|
153
|
-
* icon?: string
|
|
154
|
-
* color?: string
|
|
155
|
-
* }
|
|
156
|
-
* }
|
|
157
|
-
* // You Character class
|
|
158
|
-
* export class Character extends CharacterStoredClass implements CharacterInterface {
|
|
159
|
-
* constructor(id: string, props: CharacterProps) {
|
|
160
|
-
* super(id)
|
|
161
|
-
* this.defaultName = props.name
|
|
162
|
-
* this.defaultSurname = props.surname
|
|
163
|
-
* this.defaultAge = props.age
|
|
164
|
-
* this._icon = props.icon
|
|
165
|
-
* this._color = props.color
|
|
166
|
-
* }
|
|
167
|
-
* private defaultName: string = ""
|
|
168
|
-
* get name(): string {
|
|
169
|
-
* return this.getStorageProperty<string>("name") || this.defaultName
|
|
170
|
-
* }
|
|
171
|
-
* set name(value: string | undefined) {
|
|
172
|
-
* this.setStorageProperty<string>("name", value)
|
|
173
|
-
* }
|
|
174
|
-
* private defaultSurname?: string
|
|
175
|
-
* get surname(): string | undefined {
|
|
176
|
-
* return this.getStorageProperty<string>("surname") || this.defaultSurname
|
|
177
|
-
* }
|
|
178
|
-
* set surname(value: string | undefined) {
|
|
179
|
-
* this.setStorageProperty<string>("surname", value)
|
|
180
|
-
* }
|
|
181
|
-
* private defaultAge?: number | undefined
|
|
182
|
-
* get age(): number | undefined {
|
|
183
|
-
* return this.getStorageProperty<number>("age") || this.defaultAge
|
|
184
|
-
* }
|
|
185
|
-
* set age(value: number | undefined) {
|
|
186
|
-
* this.setStorageProperty<number>("age", value)
|
|
187
|
-
* }
|
|
188
|
-
* private _icon?: string
|
|
189
|
-
* get icon(): string | undefined {
|
|
190
|
-
* return this._icon
|
|
191
|
-
* }
|
|
192
|
-
* private _color?: string | undefined
|
|
193
|
-
* get color(): string | undefined {
|
|
194
|
-
* return this._color
|
|
195
|
-
* }
|
|
196
|
-
* }
|
|
197
|
-
* ```
|
|
198
|
-
*/
|
|
199
|
-
interface CharacterInterface {
|
|
200
|
-
/**
|
|
201
|
-
* The id of the character. It must be unique.
|
|
202
|
-
*/
|
|
203
|
-
id: string;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
type characterUtils_CharacterBaseModel = CharacterBaseModel;
|
|
207
|
-
declare const characterUtils_CharacterBaseModel: typeof CharacterBaseModel;
|
|
208
|
-
type characterUtils_CharacterInterface = CharacterInterface;
|
|
209
|
-
type characterUtils_CharacterStoredClass = CharacterStoredClass;
|
|
210
|
-
declare const characterUtils_CharacterStoredClass: typeof CharacterStoredClass;
|
|
211
|
-
declare const characterUtils_RegisteredCharacters: typeof RegisteredCharacters;
|
|
212
|
-
declare namespace characterUtils {
|
|
213
|
-
export { characterUtils_CharacterBaseModel as CharacterBaseModel, type characterUtils_CharacterInterface as CharacterInterface, characterUtils_CharacterStoredClass as CharacterStoredClass, characterUtils_RegisteredCharacters as RegisteredCharacters };
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export { CharacterBaseModel as C, RegisteredCharacters as R, CharacterStoredClass as a, type CharacterInterface as b, characterUtils as c };
|
package/dist/index-Cvdua0o-.d.ts
DELETED
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { S as StoredClassModel } from './StoredClassModel-CjdhvNgB.js';
|
|
2
|
-
import { CharacterInterface as CharacterInterface$1 } from '@drincs/pixi-vn';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* CharacterBaseModelProps is an interface that is used to create a character model.
|
|
6
|
-
*/
|
|
7
|
-
interface CharacterBaseModelProps {
|
|
8
|
-
/**
|
|
9
|
-
* The name of the character.
|
|
10
|
-
*/
|
|
11
|
-
name?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The surname of the character.
|
|
14
|
-
*/
|
|
15
|
-
surname?: string;
|
|
16
|
-
/**
|
|
17
|
-
* The age of the character.
|
|
18
|
-
*/
|
|
19
|
-
age?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The icon of the character.
|
|
22
|
-
*/
|
|
23
|
-
icon?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The color of the character.
|
|
26
|
-
*/
|
|
27
|
-
color?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare class CharacterStoredClass extends StoredClassModel {
|
|
31
|
-
private sourceId;
|
|
32
|
-
constructor(id: string, emotion?: string);
|
|
33
|
-
getStorageProperty<T>(propertyName: string): T | undefined;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* CharacterBaseModel is a class that is used to create a character model.
|
|
38
|
-
* You must use the {@link RegisteredCharacters.add} function to save the character in the game.
|
|
39
|
-
* It is raccomended to create your own class Character, read more here: https://pixi-vn.web.app/start/character.html#custom-character
|
|
40
|
-
* @example
|
|
41
|
-
* ```typescript
|
|
42
|
-
* export const liam = new CharacterBaseModel('liam', {
|
|
43
|
-
* name: 'Liam',
|
|
44
|
-
* surname: 'Smith',
|
|
45
|
-
* age: 25,
|
|
46
|
-
* icon: "https://pixijs.com/assets/eggHead.png",
|
|
47
|
-
* color: "#9e2e12"
|
|
48
|
-
* });
|
|
49
|
-
* export const alice = new CharacterBaseModel('alice', {
|
|
50
|
-
* name: 'Alice',
|
|
51
|
-
* surname: 'Smith',
|
|
52
|
-
* age: 25,
|
|
53
|
-
* icon: "https://pixijs.com/assets/eggHead.png",
|
|
54
|
-
* color: "#9e2e12"
|
|
55
|
-
* });
|
|
56
|
-
* RegisteredCharacters.add([liam, alice]);
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
declare class CharacterBaseModel extends CharacterStoredClass {
|
|
60
|
-
/**
|
|
61
|
-
* @param id The id of the character.
|
|
62
|
-
* @param props The properties of the character.
|
|
63
|
-
*/
|
|
64
|
-
constructor(id: string | {
|
|
65
|
-
id: string;
|
|
66
|
-
emotion: string;
|
|
67
|
-
}, props: CharacterBaseModelProps);
|
|
68
|
-
private defaultName?;
|
|
69
|
-
/***
|
|
70
|
-
* The name of the character.
|
|
71
|
-
* If you set undefined, it will return the default name.
|
|
72
|
-
*/
|
|
73
|
-
get name(): string;
|
|
74
|
-
set name(value: string | undefined);
|
|
75
|
-
private defaultSurname?;
|
|
76
|
-
/**
|
|
77
|
-
* The surname of the character.
|
|
78
|
-
* If you set undefined, it will return the default surname.
|
|
79
|
-
*/
|
|
80
|
-
get surname(): string | undefined;
|
|
81
|
-
set surname(value: string | undefined);
|
|
82
|
-
private defaultAge?;
|
|
83
|
-
/**
|
|
84
|
-
* The age of the character.
|
|
85
|
-
* If you set undefined, it will return the default age.
|
|
86
|
-
*/
|
|
87
|
-
get age(): number | undefined;
|
|
88
|
-
set age(value: number | undefined);
|
|
89
|
-
private _icon?;
|
|
90
|
-
/**
|
|
91
|
-
* The icon of the character.
|
|
92
|
-
*/
|
|
93
|
-
get icon(): string | undefined;
|
|
94
|
-
private _color?;
|
|
95
|
-
/**
|
|
96
|
-
* The color of the character.
|
|
97
|
-
*/
|
|
98
|
-
get color(): string | undefined;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
declare namespace RegisteredCharacters {
|
|
102
|
-
/**
|
|
103
|
-
* is a function that returns the character by the id
|
|
104
|
-
* @param id is the id of the character
|
|
105
|
-
* @returns the character
|
|
106
|
-
* @example
|
|
107
|
-
* ```typescript
|
|
108
|
-
* const liam = RegisteredCharacters.get('liam');
|
|
109
|
-
* ```
|
|
110
|
-
*/
|
|
111
|
-
function get<T = CharacterInterface$1>(id: string): T | undefined;
|
|
112
|
-
/**
|
|
113
|
-
* Is a function that saves the character. If the character already exists, it will be overwritten.
|
|
114
|
-
* @param character is the character to save
|
|
115
|
-
* @returns
|
|
116
|
-
* @example
|
|
117
|
-
* ```typescript
|
|
118
|
-
* export const liam = new CharacterBaseModel('liam', { name: 'Liam'});
|
|
119
|
-
* export const alice = new CharacterBaseModel('alice', { name: 'Alice'});
|
|
120
|
-
* RegisteredCharacters.add([liam, alice]);
|
|
121
|
-
* ```
|
|
122
|
-
*/
|
|
123
|
-
function add(character: CharacterInterface$1 | CharacterInterface$1[]): void;
|
|
124
|
-
/**
|
|
125
|
-
* is a function that returns all characters
|
|
126
|
-
* @returns all characters
|
|
127
|
-
* @example
|
|
128
|
-
* ```typescript
|
|
129
|
-
* const allCharacters = RegisteredCharacters.values();
|
|
130
|
-
* ```
|
|
131
|
-
*/
|
|
132
|
-
function values<T extends CharacterInterface$1>(): T[];
|
|
133
|
-
/**
|
|
134
|
-
* Check if a character is registered.
|
|
135
|
-
* @param id is the id of the character
|
|
136
|
-
* @returns true if the character exists, false otherwise
|
|
137
|
-
*/
|
|
138
|
-
function has(id: string): boolean;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* CharacterInterface is the interface that character must implement or extend.
|
|
143
|
-
* So if you want to create your own Character, you must override this interface, implement or extend it and extend the {@link CharacterStoredClass} class.
|
|
144
|
-
* You can override this interface to add your own props.
|
|
145
|
-
* @example
|
|
146
|
-
* ```typescript
|
|
147
|
-
* // pixi-vn.d.ts
|
|
148
|
-
* declare module '@drincs/pixi-vn' {
|
|
149
|
-
* interface CharacterInterface {
|
|
150
|
-
* name: string
|
|
151
|
-
* surname?: string
|
|
152
|
-
* age?: number
|
|
153
|
-
* icon?: string
|
|
154
|
-
* color?: string
|
|
155
|
-
* }
|
|
156
|
-
* }
|
|
157
|
-
* // You Character class
|
|
158
|
-
* export class Character extends CharacterStoredClass implements CharacterInterface {
|
|
159
|
-
* constructor(id: string, props: CharacterProps) {
|
|
160
|
-
* super(id)
|
|
161
|
-
* this.defaultName = props.name
|
|
162
|
-
* this.defaultSurname = props.surname
|
|
163
|
-
* this.defaultAge = props.age
|
|
164
|
-
* this._icon = props.icon
|
|
165
|
-
* this._color = props.color
|
|
166
|
-
* }
|
|
167
|
-
* private defaultName: string = ""
|
|
168
|
-
* get name(): string {
|
|
169
|
-
* return this.getStorageProperty<string>("name") || this.defaultName
|
|
170
|
-
* }
|
|
171
|
-
* set name(value: string | undefined) {
|
|
172
|
-
* this.setStorageProperty<string>("name", value)
|
|
173
|
-
* }
|
|
174
|
-
* private defaultSurname?: string
|
|
175
|
-
* get surname(): string | undefined {
|
|
176
|
-
* return this.getStorageProperty<string>("surname") || this.defaultSurname
|
|
177
|
-
* }
|
|
178
|
-
* set surname(value: string | undefined) {
|
|
179
|
-
* this.setStorageProperty<string>("surname", value)
|
|
180
|
-
* }
|
|
181
|
-
* private defaultAge?: number | undefined
|
|
182
|
-
* get age(): number | undefined {
|
|
183
|
-
* return this.getStorageProperty<number>("age") || this.defaultAge
|
|
184
|
-
* }
|
|
185
|
-
* set age(value: number | undefined) {
|
|
186
|
-
* this.setStorageProperty<number>("age", value)
|
|
187
|
-
* }
|
|
188
|
-
* private _icon?: string
|
|
189
|
-
* get icon(): string | undefined {
|
|
190
|
-
* return this._icon
|
|
191
|
-
* }
|
|
192
|
-
* private _color?: string | undefined
|
|
193
|
-
* get color(): string | undefined {
|
|
194
|
-
* return this._color
|
|
195
|
-
* }
|
|
196
|
-
* }
|
|
197
|
-
* ```
|
|
198
|
-
*/
|
|
199
|
-
interface CharacterInterface {
|
|
200
|
-
/**
|
|
201
|
-
* The id of the character. It must be unique.
|
|
202
|
-
*/
|
|
203
|
-
id: string;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
type characterUtils_CharacterBaseModel = CharacterBaseModel;
|
|
207
|
-
declare const characterUtils_CharacterBaseModel: typeof CharacterBaseModel;
|
|
208
|
-
type characterUtils_CharacterInterface = CharacterInterface;
|
|
209
|
-
type characterUtils_CharacterStoredClass = CharacterStoredClass;
|
|
210
|
-
declare const characterUtils_CharacterStoredClass: typeof CharacterStoredClass;
|
|
211
|
-
declare const characterUtils_RegisteredCharacters: typeof RegisteredCharacters;
|
|
212
|
-
declare namespace characterUtils {
|
|
213
|
-
export { characterUtils_CharacterBaseModel as CharacterBaseModel, type characterUtils_CharacterInterface as CharacterInterface, characterUtils_CharacterStoredClass as CharacterStoredClass, characterUtils_RegisteredCharacters as RegisteredCharacters };
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export { CharacterBaseModel as C, RegisteredCharacters as R, CharacterStoredClass as a, type CharacterInterface as b, characterUtils as c };
|
package/dist/index-Czfdktw9.d.ts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { Sound as Sound$1, IMediaInstance, SoundLibrary, IMediaContext, Filter, SoundMap } from '@pixi/sound';
|
|
2
|
-
import { b as SoundPlayOptions, a as SoundOptions, S as SoundGameState, d as SoundPlay, E as ExportedSound, c as SoundFilterMemory } from './SoundGameState-BG_iPwjt.js';
|
|
3
|
-
|
|
4
|
-
declare class Sound extends Sound$1 {
|
|
5
|
-
alias?: string;
|
|
6
|
-
pause(): this;
|
|
7
|
-
resume(): this;
|
|
8
|
-
destroy(): void;
|
|
9
|
-
stop(): this;
|
|
10
|
-
play(options?: string | SoundPlayOptions): IMediaInstance | Promise<IMediaInstance>;
|
|
11
|
-
/**
|
|
12
|
-
* https://github.com/pixijs/sound/blob/main/src/Sound.ts#L235
|
|
13
|
-
*/
|
|
14
|
-
static from(source: string | string[] | SoundOptions | ArrayBuffer | HTMLAudioElement | AudioBuffer): Sound;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare class SoundManager extends SoundLibrary {
|
|
18
|
-
constructor();
|
|
19
|
-
get context(): IMediaContext;
|
|
20
|
-
get filtersAll(): Filter[];
|
|
21
|
-
set filtersAll(filtersAll: Filter[]);
|
|
22
|
-
get supported(): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* https://github.com/pixijs/sound/blob/main/src/SoundLibrary.ts#L187
|
|
25
|
-
*/
|
|
26
|
-
private getOptions;
|
|
27
|
-
add(alias: string, options: SoundOptions | string): Sound;
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated: Use `add(alias: string, options: Options | string | ArrayBuffer | AudioBuffer | HTMLAudioElement | Sound): Sound;` instead.
|
|
30
|
-
*/
|
|
31
|
-
add(map: any, globalOptions?: SoundOptions): SoundMap;
|
|
32
|
-
get useLegacy(): boolean;
|
|
33
|
-
set useLegacy(legacy: boolean);
|
|
34
|
-
get disableAutoPause(): boolean;
|
|
35
|
-
set disableAutoPause(autoPause: boolean);
|
|
36
|
-
remove(alias: string): this;
|
|
37
|
-
get volumeAll(): number;
|
|
38
|
-
set volumeAll(volume: number);
|
|
39
|
-
get speedAll(): number;
|
|
40
|
-
set speedAll(speed: number);
|
|
41
|
-
togglePauseAll(): boolean;
|
|
42
|
-
pauseAll(): this;
|
|
43
|
-
resumeAll(): this;
|
|
44
|
-
toggleMuteAll(): boolean;
|
|
45
|
-
muteAll(): this;
|
|
46
|
-
unmuteAll(): this;
|
|
47
|
-
removeAll(): this;
|
|
48
|
-
stopAll(): this;
|
|
49
|
-
exists(alias: string, assert?: boolean): boolean;
|
|
50
|
-
isPlaying(): boolean;
|
|
51
|
-
find(alias: string): Sound;
|
|
52
|
-
play(alias: string, options?: SoundPlayOptions | string): IMediaInstance | Promise<IMediaInstance>;
|
|
53
|
-
stop(alias: string): Sound;
|
|
54
|
-
pause(alias: string): Sound;
|
|
55
|
-
resume(alias: string): Sound;
|
|
56
|
-
volume(alias: string, volume?: number): number;
|
|
57
|
-
speed(alias: string, speed?: number): number;
|
|
58
|
-
duration(alias: string): number;
|
|
59
|
-
close(): this;
|
|
60
|
-
clear(): void;
|
|
61
|
-
export(): SoundGameState;
|
|
62
|
-
removeOldSoundAndExport(): SoundGameState;
|
|
63
|
-
restore(data: object): void;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
declare class SoundManagerStatic {
|
|
67
|
-
private constructor();
|
|
68
|
-
static soundAliasesOrder: string[];
|
|
69
|
-
static soundsPlaying: {
|
|
70
|
-
[key: string]: SoundPlay;
|
|
71
|
-
};
|
|
72
|
-
static sounds: {
|
|
73
|
-
[key: string]: Sound;
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
declare const sound: SoundManager;
|
|
78
|
-
|
|
79
|
-
declare const soundUtils_ExportedSound: typeof ExportedSound;
|
|
80
|
-
type soundUtils_Sound = Sound;
|
|
81
|
-
declare const soundUtils_Sound: typeof Sound;
|
|
82
|
-
declare const soundUtils_SoundFilterMemory: typeof SoundFilterMemory;
|
|
83
|
-
declare const soundUtils_SoundGameState: typeof SoundGameState;
|
|
84
|
-
type soundUtils_SoundManagerStatic = SoundManagerStatic;
|
|
85
|
-
declare const soundUtils_SoundManagerStatic: typeof SoundManagerStatic;
|
|
86
|
-
declare const soundUtils_SoundOptions: typeof SoundOptions;
|
|
87
|
-
declare const soundUtils_SoundPlayOptions: typeof SoundPlayOptions;
|
|
88
|
-
declare const soundUtils_sound: typeof sound;
|
|
89
|
-
declare namespace soundUtils {
|
|
90
|
-
export { soundUtils_ExportedSound as ExportedSound, soundUtils_Sound as Sound, soundUtils_SoundFilterMemory as SoundFilterMemory, soundUtils_SoundGameState as SoundGameState, soundUtils_SoundManagerStatic as SoundManagerStatic, soundUtils_SoundOptions as SoundOptions, soundUtils_SoundPlayOptions as SoundPlayOptions, soundUtils_sound as sound };
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export { SoundManager as S, sound as a, Sound as b, SoundManagerStatic as c, soundUtils as s };
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { Sound as Sound$1, IMediaInstance, SoundLibrary, IMediaContext, Filter, SoundMap } from '@pixi/sound';
|
|
2
|
-
import { b as SoundPlayOptions, a as SoundOptions, S as SoundGameState, d as SoundPlay, E as ExportedSound, c as SoundFilterMemory } from './SoundGameState-BG_iPwjt.cjs';
|
|
3
|
-
|
|
4
|
-
declare class Sound extends Sound$1 {
|
|
5
|
-
alias?: string;
|
|
6
|
-
pause(): this;
|
|
7
|
-
resume(): this;
|
|
8
|
-
destroy(): void;
|
|
9
|
-
stop(): this;
|
|
10
|
-
play(options?: string | SoundPlayOptions): IMediaInstance | Promise<IMediaInstance>;
|
|
11
|
-
/**
|
|
12
|
-
* https://github.com/pixijs/sound/blob/main/src/Sound.ts#L235
|
|
13
|
-
*/
|
|
14
|
-
static from(source: string | string[] | SoundOptions | ArrayBuffer | HTMLAudioElement | AudioBuffer): Sound;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare class SoundManager extends SoundLibrary {
|
|
18
|
-
constructor();
|
|
19
|
-
get context(): IMediaContext;
|
|
20
|
-
get filtersAll(): Filter[];
|
|
21
|
-
set filtersAll(filtersAll: Filter[]);
|
|
22
|
-
get supported(): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* https://github.com/pixijs/sound/blob/main/src/SoundLibrary.ts#L187
|
|
25
|
-
*/
|
|
26
|
-
private getOptions;
|
|
27
|
-
add(alias: string, options: SoundOptions | string): Sound;
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated: Use `add(alias: string, options: Options | string | ArrayBuffer | AudioBuffer | HTMLAudioElement | Sound): Sound;` instead.
|
|
30
|
-
*/
|
|
31
|
-
add(map: any, globalOptions?: SoundOptions): SoundMap;
|
|
32
|
-
get useLegacy(): boolean;
|
|
33
|
-
set useLegacy(legacy: boolean);
|
|
34
|
-
get disableAutoPause(): boolean;
|
|
35
|
-
set disableAutoPause(autoPause: boolean);
|
|
36
|
-
remove(alias: string): this;
|
|
37
|
-
get volumeAll(): number;
|
|
38
|
-
set volumeAll(volume: number);
|
|
39
|
-
get speedAll(): number;
|
|
40
|
-
set speedAll(speed: number);
|
|
41
|
-
togglePauseAll(): boolean;
|
|
42
|
-
pauseAll(): this;
|
|
43
|
-
resumeAll(): this;
|
|
44
|
-
toggleMuteAll(): boolean;
|
|
45
|
-
muteAll(): this;
|
|
46
|
-
unmuteAll(): this;
|
|
47
|
-
removeAll(): this;
|
|
48
|
-
stopAll(): this;
|
|
49
|
-
exists(alias: string, assert?: boolean): boolean;
|
|
50
|
-
isPlaying(): boolean;
|
|
51
|
-
find(alias: string): Sound;
|
|
52
|
-
play(alias: string, options?: SoundPlayOptions | string): IMediaInstance | Promise<IMediaInstance>;
|
|
53
|
-
stop(alias: string): Sound;
|
|
54
|
-
pause(alias: string): Sound;
|
|
55
|
-
resume(alias: string): Sound;
|
|
56
|
-
volume(alias: string, volume?: number): number;
|
|
57
|
-
speed(alias: string, speed?: number): number;
|
|
58
|
-
duration(alias: string): number;
|
|
59
|
-
close(): this;
|
|
60
|
-
clear(): void;
|
|
61
|
-
export(): SoundGameState;
|
|
62
|
-
removeOldSoundAndExport(): SoundGameState;
|
|
63
|
-
restore(data: object): void;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
declare class SoundManagerStatic {
|
|
67
|
-
private constructor();
|
|
68
|
-
static soundAliasesOrder: string[];
|
|
69
|
-
static soundsPlaying: {
|
|
70
|
-
[key: string]: SoundPlay;
|
|
71
|
-
};
|
|
72
|
-
static sounds: {
|
|
73
|
-
[key: string]: Sound;
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
declare const sound: SoundManager;
|
|
78
|
-
|
|
79
|
-
declare const soundUtils_ExportedSound: typeof ExportedSound;
|
|
80
|
-
type soundUtils_Sound = Sound;
|
|
81
|
-
declare const soundUtils_Sound: typeof Sound;
|
|
82
|
-
declare const soundUtils_SoundFilterMemory: typeof SoundFilterMemory;
|
|
83
|
-
declare const soundUtils_SoundGameState: typeof SoundGameState;
|
|
84
|
-
type soundUtils_SoundManagerStatic = SoundManagerStatic;
|
|
85
|
-
declare const soundUtils_SoundManagerStatic: typeof SoundManagerStatic;
|
|
86
|
-
declare const soundUtils_SoundOptions: typeof SoundOptions;
|
|
87
|
-
declare const soundUtils_SoundPlayOptions: typeof SoundPlayOptions;
|
|
88
|
-
declare const soundUtils_sound: typeof sound;
|
|
89
|
-
declare namespace soundUtils {
|
|
90
|
-
export { soundUtils_ExportedSound as ExportedSound, soundUtils_Sound as Sound, soundUtils_SoundFilterMemory as SoundFilterMemory, soundUtils_SoundGameState as SoundGameState, soundUtils_SoundManagerStatic as SoundManagerStatic, soundUtils_SoundOptions as SoundOptions, soundUtils_SoundPlayOptions as SoundPlayOptions, soundUtils_sound as sound };
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export { SoundManager as S, sound as a, Sound as b, SoundManagerStatic as c, soundUtils as s };
|