@drincs/nqtr 0.1.9 → 0.1.11

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 (63) hide show
  1. package/dist/classes/Activity.js +14 -14
  2. package/dist/classes/Activity.js.map +1 -1
  3. package/dist/classes/Activity.mjs +14 -14
  4. package/dist/classes/Activity.mjs.map +1 -1
  5. package/dist/classes/Commitment.js +5 -6
  6. package/dist/classes/Commitment.js.map +1 -1
  7. package/dist/classes/Commitment.mjs +5 -6
  8. package/dist/classes/Commitment.mjs.map +1 -1
  9. package/dist/classes/index.js +10 -12
  10. package/dist/classes/index.js.map +1 -1
  11. package/dist/classes/index.mjs +10 -12
  12. package/dist/classes/index.mjs.map +1 -1
  13. package/dist/classes/navigation/ActivityRoom.js +9 -8
  14. package/dist/classes/navigation/ActivityRoom.js.map +1 -1
  15. package/dist/classes/navigation/ActivityRoom.mjs +9 -8
  16. package/dist/classes/navigation/ActivityRoom.mjs.map +1 -1
  17. package/dist/classes/navigation/Location.js +5 -6
  18. package/dist/classes/navigation/Location.js.map +1 -1
  19. package/dist/classes/navigation/Location.mjs +5 -6
  20. package/dist/classes/navigation/Location.mjs.map +1 -1
  21. package/dist/classes/navigation/Map.js +5 -6
  22. package/dist/classes/navigation/Map.js.map +1 -1
  23. package/dist/classes/navigation/Map.mjs +5 -6
  24. package/dist/classes/navigation/Map.mjs.map +1 -1
  25. package/dist/classes/navigation/Room.js +19 -20
  26. package/dist/classes/navigation/Room.js.map +1 -1
  27. package/dist/classes/navigation/Room.mjs +19 -20
  28. package/dist/classes/navigation/Room.mjs.map +1 -1
  29. package/dist/classes/navigation/index.js +29 -32
  30. package/dist/classes/navigation/index.js.map +1 -1
  31. package/dist/classes/navigation/index.mjs +29 -32
  32. package/dist/classes/navigation/index.mjs.map +1 -1
  33. package/dist/functions/ActivityFunctions.js.map +1 -1
  34. package/dist/functions/ActivityFunctions.mjs.map +1 -1
  35. package/dist/functions/NavigationFunctions.js +5 -6
  36. package/dist/functions/NavigationFunctions.js.map +1 -1
  37. package/dist/functions/NavigationFunctions.mjs +5 -6
  38. package/dist/functions/NavigationFunctions.mjs.map +1 -1
  39. package/dist/functions/index.js +5 -6
  40. package/dist/functions/index.js.map +1 -1
  41. package/dist/functions/index.mjs +5 -6
  42. package/dist/functions/index.mjs.map +1 -1
  43. package/dist/index.js +39 -44
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +39 -44
  46. package/dist/index.mjs.map +1 -1
  47. package/dist/override/GraphicHTMLElement.d.mts +16 -0
  48. package/dist/override/GraphicHTMLElement.d.ts +16 -0
  49. package/dist/override/GraphicHTMLElement.js +4 -0
  50. package/dist/override/GraphicHTMLElement.js.map +1 -0
  51. package/dist/override/GraphicHTMLElement.mjs +3 -0
  52. package/dist/override/GraphicHTMLElement.mjs.map +1 -0
  53. package/dist/override/GraphicItemInterface.d.mts +19 -0
  54. package/dist/override/GraphicItemInterface.d.ts +19 -0
  55. package/dist/override/GraphicItemInterface.js +4 -0
  56. package/dist/override/GraphicItemInterface.js.map +1 -0
  57. package/dist/override/GraphicItemInterface.mjs +3 -0
  58. package/dist/override/GraphicItemInterface.mjs.map +1 -0
  59. package/dist/override/GraphicItemType.d.mts +6 -3
  60. package/dist/override/GraphicItemType.d.ts +6 -3
  61. package/dist/override/index.d.mts +2 -0
  62. package/dist/override/index.d.ts +2 -0
  63. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -274,7 +274,7 @@ var ActivityStoredAbstract = class {
274
274
  this.defaultDisabled = props.disabled || false;
275
275
  this.defaultHidden = props.hidden || false;
276
276
  this._renderIcon = props.renderIcon;
277
- this._onRun = (props2) => onRun(this, props2);
277
+ this._onRun = onRun;
278
278
  }
279
279
  /**
280
280
  * The name
@@ -360,23 +360,24 @@ var ActivityStoredAbstract = class {
360
360
  * The function for rendering the icon of the activity.
361
361
  */
362
362
  get renderIcon() {
363
- if (!this._renderIcon) {
363
+ let render = this._renderIcon;
364
+ if (render === void 0) {
364
365
  return void 0;
365
366
  }
366
- if (typeof this._renderIcon !== "function") {
367
- return (props) => this._renderIcon;
368
- }
369
- if (this._renderIcon !== void 0) {
367
+ if (typeof render === "function") {
370
368
  return (props) => {
371
- return this._renderIcon(this, props);
369
+ return render(this, props);
372
370
  };
373
371
  }
372
+ return (props) => render;
374
373
  }
375
374
  /**
376
375
  * The function that is called when the activity is runned.
377
376
  */
378
377
  get onRun() {
379
- return (props) => this._onRun(this, props);
378
+ return (props) => {
379
+ return this._onRun(this, props);
380
+ };
380
381
  }
381
382
  /**
382
383
  * Whether the activity is a deadline.
@@ -487,17 +488,16 @@ var ActivityModel = class {
487
488
  * The function for rendering the icon of the activity.
488
489
  */
489
490
  get renderIcon() {
490
- if (!this._renderIcon) {
491
+ let render = this._renderIcon;
492
+ if (render === void 0) {
491
493
  return void 0;
492
494
  }
493
- if (typeof this._renderIcon !== "function") {
494
- return (props) => this._renderIcon;
495
- }
496
- if (this._renderIcon !== void 0) {
495
+ if (typeof render === "function") {
497
496
  return (props) => {
498
- return this._renderIcon(this, props);
497
+ return render(this, props);
499
498
  };
500
499
  }
500
+ return (props) => render;
501
501
  }
502
502
  /**
503
503
  * The function that is called when the activity is runned.
@@ -626,17 +626,16 @@ var CommitmentBaseModel = class extends StoredClassModel {
626
626
  * The function for rendering the image of the room.
627
627
  */
628
628
  get renderImage() {
629
- if (!this._renderImage) {
629
+ let render = this._renderImage;
630
+ if (render === void 0) {
630
631
  return void 0;
631
632
  }
632
- if (typeof this._renderImage !== "function") {
633
- return (props) => this._renderImage;
634
- }
635
- if (this.renderImage !== void 0) {
633
+ if (typeof render === "function") {
636
634
  return (props) => {
637
- return this.renderImage(this, props);
635
+ return render(this, props);
638
636
  };
639
637
  }
638
+ return (props) => render;
640
639
  }
641
640
  /**
642
641
  * Execution type. If is "automatic" the onRun() runned automatically when the palayer is in the room. If is "interaction" the player must interact with the character to run the onRun() function.
@@ -803,17 +802,16 @@ var LocationBaseModel = class extends StoredClassModel {
803
802
  * The function for rendering the icon of the location.
804
803
  */
805
804
  get renderIcon() {
806
- if (!this._renderIcon) {
805
+ let render = this._renderIcon;
806
+ if (render === void 0) {
807
807
  return void 0;
808
808
  }
809
- if (typeof this._renderIcon !== "function") {
810
- return (props) => this._renderIcon;
811
- }
812
- if (this._renderIcon !== void 0) {
809
+ if (typeof render === "function") {
813
810
  return (props) => {
814
- return this._renderIcon(this, props);
811
+ return render(this, props);
815
812
  };
816
813
  }
814
+ return (props) => render;
817
815
  }
818
816
  /**
819
817
  * The map where the location is.
@@ -878,17 +876,16 @@ var MapBaseModel = class extends StoredClassModel {
878
876
  * The function for rendering the image of the map.
879
877
  */
880
878
  get renderImage() {
881
- if (!this._renderImage) {
879
+ let render = this._renderImage;
880
+ if (render === void 0) {
882
881
  return void 0;
883
882
  }
884
- if (typeof this._renderImage !== "function") {
885
- return (props) => this._renderImage;
886
- }
887
- if (this.renderImage !== void 0) {
883
+ if (typeof render === "function") {
888
884
  return (props) => {
889
- return this.renderImage(this, props);
885
+ return render(this, props);
890
886
  };
891
887
  }
888
+ return (props) => render;
892
889
  }
893
890
  /**
894
891
  * Whether is disabled. If it is a string, it is a Pixi'VN flag name.
@@ -1172,17 +1169,16 @@ var RoomBaseModel = class extends StoredClassModel {
1172
1169
  * The function for rendering the image of the room.
1173
1170
  */
1174
1171
  get renderImage() {
1175
- if (!this._renderIcon) {
1172
+ let render = this._renderImage;
1173
+ if (render === void 0) {
1176
1174
  return void 0;
1177
1175
  }
1178
- if (typeof this._renderImage !== "function") {
1179
- return (props) => this._renderImage;
1180
- }
1181
- if (this.renderImage !== void 0) {
1176
+ if (typeof render === "function") {
1182
1177
  return (props) => {
1183
- return this.renderImage(this, props);
1178
+ return render(this, props);
1184
1179
  };
1185
1180
  }
1181
+ return (props) => render;
1186
1182
  }
1187
1183
  /**
1188
1184
  * The activities that are available in this room.
@@ -1343,17 +1339,16 @@ var RoomBaseModel = class extends StoredClassModel {
1343
1339
  * The function for rendering the icon of the room.
1344
1340
  */
1345
1341
  get renderIcon() {
1346
- if (!this._renderIcon) {
1342
+ let render = this._renderIcon;
1343
+ if (render === void 0) {
1347
1344
  return void 0;
1348
1345
  }
1349
- if (typeof this._renderIcon !== "function") {
1350
- return (props) => this._renderIcon;
1351
- }
1352
- if (this._renderIcon !== void 0) {
1346
+ if (typeof render === "function") {
1353
1347
  return (props) => {
1354
- return this._renderIcon(this, props);
1348
+ return render(this, props);
1355
1349
  };
1356
1350
  }
1351
+ return (props) => render;
1357
1352
  }
1358
1353
  /**
1359
1354
  * Get the character commitments of the room.