@drincs/nqtr 0.1.9 → 0.1.10

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 (47) hide show
  1. package/dist/classes/Activity.js +10 -12
  2. package/dist/classes/Activity.js.map +1 -1
  3. package/dist/classes/Activity.mjs +10 -12
  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 +5 -6
  14. package/dist/classes/navigation/ActivityRoom.js.map +1 -1
  15. package/dist/classes/navigation/ActivityRoom.mjs +5 -6
  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 +15 -18
  26. package/dist/classes/navigation/Room.js.map +1 -1
  27. package/dist/classes/navigation/Room.mjs +15 -18
  28. package/dist/classes/navigation/Room.mjs.map +1 -1
  29. package/dist/classes/navigation/index.js +25 -30
  30. package/dist/classes/navigation/index.js.map +1 -1
  31. package/dist/classes/navigation/index.mjs +25 -30
  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 +35 -42
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +35 -42
  46. package/dist/index.mjs.map +1 -1
  47. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -360,17 +360,16 @@ 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.
@@ -487,17 +486,16 @@ var ActivityModel = class {
487
486
  * The function for rendering the icon of the activity.
488
487
  */
489
488
  get renderIcon() {
490
- if (!this._renderIcon) {
489
+ let render = this._renderIcon;
490
+ if (render === void 0) {
491
491
  return void 0;
492
492
  }
493
- if (typeof this._renderIcon !== "function") {
494
- return (props) => this._renderIcon;
495
- }
496
- if (this._renderIcon !== void 0) {
493
+ if (typeof render === "function") {
497
494
  return (props) => {
498
- return this._renderIcon(this, props);
495
+ return render(this, props);
499
496
  };
500
497
  }
498
+ return (props) => render;
501
499
  }
502
500
  /**
503
501
  * The function that is called when the activity is runned.
@@ -626,17 +624,16 @@ var CommitmentBaseModel = class extends StoredClassModel {
626
624
  * The function for rendering the image of the room.
627
625
  */
628
626
  get renderImage() {
629
- if (!this._renderImage) {
627
+ let render = this._renderImage;
628
+ if (render === void 0) {
630
629
  return void 0;
631
630
  }
632
- if (typeof this._renderImage !== "function") {
633
- return (props) => this._renderImage;
634
- }
635
- if (this.renderImage !== void 0) {
631
+ if (typeof render === "function") {
636
632
  return (props) => {
637
- return this.renderImage(this, props);
633
+ return render(this, props);
638
634
  };
639
635
  }
636
+ return (props) => render;
640
637
  }
641
638
  /**
642
639
  * 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 +800,16 @@ var LocationBaseModel = class extends StoredClassModel {
803
800
  * The function for rendering the icon of the location.
804
801
  */
805
802
  get renderIcon() {
806
- if (!this._renderIcon) {
803
+ let render = this._renderIcon;
804
+ if (render === void 0) {
807
805
  return void 0;
808
806
  }
809
- if (typeof this._renderIcon !== "function") {
810
- return (props) => this._renderIcon;
811
- }
812
- if (this._renderIcon !== void 0) {
807
+ if (typeof render === "function") {
813
808
  return (props) => {
814
- return this._renderIcon(this, props);
809
+ return render(this, props);
815
810
  };
816
811
  }
812
+ return (props) => render;
817
813
  }
818
814
  /**
819
815
  * The map where the location is.
@@ -878,17 +874,16 @@ var MapBaseModel = class extends StoredClassModel {
878
874
  * The function for rendering the image of the map.
879
875
  */
880
876
  get renderImage() {
881
- if (!this._renderImage) {
877
+ let render = this._renderImage;
878
+ if (render === void 0) {
882
879
  return void 0;
883
880
  }
884
- if (typeof this._renderImage !== "function") {
885
- return (props) => this._renderImage;
886
- }
887
- if (this.renderImage !== void 0) {
881
+ if (typeof render === "function") {
888
882
  return (props) => {
889
- return this.renderImage(this, props);
883
+ return render(this, props);
890
884
  };
891
885
  }
886
+ return (props) => render;
892
887
  }
893
888
  /**
894
889
  * Whether is disabled. If it is a string, it is a Pixi'VN flag name.
@@ -1172,17 +1167,16 @@ var RoomBaseModel = class extends StoredClassModel {
1172
1167
  * The function for rendering the image of the room.
1173
1168
  */
1174
1169
  get renderImage() {
1175
- if (!this._renderIcon) {
1170
+ let render = this._renderImage;
1171
+ if (render === void 0) {
1176
1172
  return void 0;
1177
1173
  }
1178
- if (typeof this._renderImage !== "function") {
1179
- return (props) => this._renderImage;
1180
- }
1181
- if (this.renderImage !== void 0) {
1174
+ if (typeof render === "function") {
1182
1175
  return (props) => {
1183
- return this.renderImage(this, props);
1176
+ return render(this, props);
1184
1177
  };
1185
1178
  }
1179
+ return (props) => render;
1186
1180
  }
1187
1181
  /**
1188
1182
  * The activities that are available in this room.
@@ -1343,17 +1337,16 @@ var RoomBaseModel = class extends StoredClassModel {
1343
1337
  * The function for rendering the icon of the room.
1344
1338
  */
1345
1339
  get renderIcon() {
1346
- if (!this._renderIcon) {
1340
+ let render = this._renderIcon;
1341
+ if (render === void 0) {
1347
1342
  return void 0;
1348
1343
  }
1349
- if (typeof this._renderIcon !== "function") {
1350
- return (props) => this._renderIcon;
1351
- }
1352
- if (this._renderIcon !== void 0) {
1344
+ if (typeof render === "function") {
1353
1345
  return (props) => {
1354
- return this._renderIcon(this, props);
1346
+ return render(this, props);
1355
1347
  };
1356
1348
  }
1349
+ return (props) => render;
1357
1350
  }
1358
1351
  /**
1359
1352
  * Get the character commitments of the room.