@drincs/pixi-vn 0.3.1 → 0.3.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.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -232,7 +232,7 @@ interface IStoratedChoiceMenuOptionLabel {
|
|
|
232
232
|
* Base class for all dialogue models. I suggest you extend this class to create your own dialogue models.
|
|
233
233
|
*/
|
|
234
234
|
declare class DialogueBaseModel {
|
|
235
|
-
constructor(text: string,
|
|
235
|
+
constructor(text: string, character: string | CharacterBaseModel | undefined);
|
|
236
236
|
/**
|
|
237
237
|
* The text of the dialogue.
|
|
238
238
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -232,7 +232,7 @@ interface IStoratedChoiceMenuOptionLabel {
|
|
|
232
232
|
* Base class for all dialogue models. I suggest you extend this class to create your own dialogue models.
|
|
233
233
|
*/
|
|
234
234
|
declare class DialogueBaseModel {
|
|
235
|
-
constructor(text: string,
|
|
235
|
+
constructor(text: string, character: string | CharacterBaseModel | undefined);
|
|
236
236
|
/**
|
|
237
237
|
* The text of the dialogue.
|
|
238
238
|
*/
|
package/dist/index.js
CHANGED
|
@@ -2431,13 +2431,17 @@ var ChoiceMenuOptionLabel = class {
|
|
|
2431
2431
|
|
|
2432
2432
|
// src/classes/DialogueBaseModel.ts
|
|
2433
2433
|
var DialogueBaseModel = class {
|
|
2434
|
-
constructor(text,
|
|
2434
|
+
constructor(text, character) {
|
|
2435
2435
|
/**
|
|
2436
2436
|
* The text of the dialogue.
|
|
2437
2437
|
*/
|
|
2438
2438
|
this.text = "";
|
|
2439
2439
|
this.text = text;
|
|
2440
|
-
|
|
2440
|
+
if (typeof character === "string") {
|
|
2441
|
+
this.characterId = character;
|
|
2442
|
+
} else {
|
|
2443
|
+
this.characterId = character == null ? void 0 : character.id;
|
|
2444
|
+
}
|
|
2441
2445
|
}
|
|
2442
2446
|
};
|
|
2443
2447
|
|