@drincs/pixi-vn 0.3.0 → 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 +7 -7
- package/dist/index.d.ts +7 -7
- 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.mjs
CHANGED
|
@@ -2353,13 +2353,17 @@ var ChoiceMenuOptionLabel = class {
|
|
|
2353
2353
|
|
|
2354
2354
|
// src/classes/DialogueBaseModel.ts
|
|
2355
2355
|
var DialogueBaseModel = class {
|
|
2356
|
-
constructor(text,
|
|
2356
|
+
constructor(text, character) {
|
|
2357
2357
|
/**
|
|
2358
2358
|
* The text of the dialogue.
|
|
2359
2359
|
*/
|
|
2360
2360
|
this.text = "";
|
|
2361
2361
|
this.text = text;
|
|
2362
|
-
|
|
2362
|
+
if (typeof character === "string") {
|
|
2363
|
+
this.characterId = character;
|
|
2364
|
+
} else {
|
|
2365
|
+
this.characterId = character == null ? void 0 : character.id;
|
|
2366
|
+
}
|
|
2363
2367
|
}
|
|
2364
2368
|
};
|
|
2365
2369
|
|