@drincs/nqtr 0.1.8 → 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 +12 -8
  2. package/dist/classes/Activity.js.map +1 -1
  3. package/dist/classes/Activity.mjs +12 -8
  4. package/dist/classes/Activity.mjs.map +1 -1
  5. package/dist/classes/Commitment.js +6 -4
  6. package/dist/classes/Commitment.js.map +1 -1
  7. package/dist/classes/Commitment.mjs +6 -4
  8. package/dist/classes/Commitment.mjs.map +1 -1
  9. package/dist/classes/index.js +12 -8
  10. package/dist/classes/index.js.map +1 -1
  11. package/dist/classes/index.mjs +12 -8
  12. package/dist/classes/index.mjs.map +1 -1
  13. package/dist/classes/navigation/ActivityRoom.js +6 -4
  14. package/dist/classes/navigation/ActivityRoom.js.map +1 -1
  15. package/dist/classes/navigation/ActivityRoom.mjs +6 -4
  16. package/dist/classes/navigation/ActivityRoom.mjs.map +1 -1
  17. package/dist/classes/navigation/Location.js +6 -4
  18. package/dist/classes/navigation/Location.js.map +1 -1
  19. package/dist/classes/navigation/Location.mjs +6 -4
  20. package/dist/classes/navigation/Location.mjs.map +1 -1
  21. package/dist/classes/navigation/Map.js +6 -4
  22. package/dist/classes/navigation/Map.js.map +1 -1
  23. package/dist/classes/navigation/Map.mjs +6 -4
  24. package/dist/classes/navigation/Map.mjs.map +1 -1
  25. package/dist/classes/navigation/Room.js +18 -12
  26. package/dist/classes/navigation/Room.js.map +1 -1
  27. package/dist/classes/navigation/Room.mjs +18 -12
  28. package/dist/classes/navigation/Room.mjs.map +1 -1
  29. package/dist/classes/navigation/index.js +30 -20
  30. package/dist/classes/navigation/index.js.map +1 -1
  31. package/dist/classes/navigation/index.mjs +30 -20
  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 +6 -4
  36. package/dist/functions/NavigationFunctions.js.map +1 -1
  37. package/dist/functions/NavigationFunctions.mjs +6 -4
  38. package/dist/functions/NavigationFunctions.mjs.map +1 -1
  39. package/dist/functions/index.js +6 -4
  40. package/dist/functions/index.js.map +1 -1
  41. package/dist/functions/index.mjs +6 -4
  42. package/dist/functions/index.mjs.map +1 -1
  43. package/dist/index.js +42 -28
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +42 -28
  46. package/dist/index.mjs.map +1 -1
  47. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -360,14 +360,16 @@ var ActivityStoredAbstract = class {
360
360
  * The function for rendering the icon of the activity.
361
361
  */
362
362
  get renderIcon() {
363
- if (typeof this._renderIcon !== "function") {
364
- return (props) => this._renderIcon;
363
+ let render = this._renderIcon;
364
+ if (render === void 0) {
365
+ return void 0;
365
366
  }
366
- if (this._renderIcon !== void 0) {
367
+ if (typeof render === "function") {
367
368
  return (props) => {
368
- return this._renderIcon(this, props);
369
+ return render(this, props);
369
370
  };
370
371
  }
372
+ return (props) => render;
371
373
  }
372
374
  /**
373
375
  * The function that is called when the activity is runned.
@@ -484,14 +486,16 @@ var ActivityModel = class {
484
486
  * The function for rendering the icon of the activity.
485
487
  */
486
488
  get renderIcon() {
487
- if (typeof this._renderIcon !== "function") {
488
- return (props) => this._renderIcon;
489
+ let render = this._renderIcon;
490
+ if (render === void 0) {
491
+ return void 0;
489
492
  }
490
- if (this._renderIcon !== void 0) {
493
+ if (typeof render === "function") {
491
494
  return (props) => {
492
- return this._renderIcon(this, props);
495
+ return render(this, props);
493
496
  };
494
497
  }
498
+ return (props) => render;
495
499
  }
496
500
  /**
497
501
  * The function that is called when the activity is runned.
@@ -620,14 +624,16 @@ var CommitmentBaseModel = class extends StoredClassModel {
620
624
  * The function for rendering the image of the room.
621
625
  */
622
626
  get renderImage() {
623
- if (typeof this._renderImage !== "function") {
624
- return (props) => this._renderImage;
627
+ let render = this._renderImage;
628
+ if (render === void 0) {
629
+ return void 0;
625
630
  }
626
- if (this.renderImage !== void 0) {
631
+ if (typeof render === "function") {
627
632
  return (props) => {
628
- return this.renderImage(this, props);
633
+ return render(this, props);
629
634
  };
630
635
  }
636
+ return (props) => render;
631
637
  }
632
638
  /**
633
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.
@@ -794,14 +800,16 @@ var LocationBaseModel = class extends StoredClassModel {
794
800
  * The function for rendering the icon of the location.
795
801
  */
796
802
  get renderIcon() {
797
- if (typeof this._renderIcon !== "function") {
798
- return (props) => this._renderIcon;
803
+ let render = this._renderIcon;
804
+ if (render === void 0) {
805
+ return void 0;
799
806
  }
800
- if (this._renderIcon !== void 0) {
807
+ if (typeof render === "function") {
801
808
  return (props) => {
802
- return this._renderIcon(this, props);
809
+ return render(this, props);
803
810
  };
804
811
  }
812
+ return (props) => render;
805
813
  }
806
814
  /**
807
815
  * The map where the location is.
@@ -866,14 +874,16 @@ var MapBaseModel = class extends StoredClassModel {
866
874
  * The function for rendering the image of the map.
867
875
  */
868
876
  get renderImage() {
869
- if (typeof this._renderImage !== "function") {
870
- return (props) => this._renderImage;
877
+ let render = this._renderImage;
878
+ if (render === void 0) {
879
+ return void 0;
871
880
  }
872
- if (this.renderImage !== void 0) {
881
+ if (typeof render === "function") {
873
882
  return (props) => {
874
- return this.renderImage(this, props);
883
+ return render(this, props);
875
884
  };
876
885
  }
886
+ return (props) => render;
877
887
  }
878
888
  /**
879
889
  * Whether is disabled. If it is a string, it is a Pixi'VN flag name.
@@ -1157,14 +1167,16 @@ var RoomBaseModel = class extends StoredClassModel {
1157
1167
  * The function for rendering the image of the room.
1158
1168
  */
1159
1169
  get renderImage() {
1160
- if (typeof this._renderImage !== "function") {
1161
- return (props) => this._renderImage;
1170
+ let render = this._renderImage;
1171
+ if (render === void 0) {
1172
+ return void 0;
1162
1173
  }
1163
- if (this.renderImage !== void 0) {
1174
+ if (typeof render === "function") {
1164
1175
  return (props) => {
1165
- return this.renderImage(this, props);
1176
+ return render(this, props);
1166
1177
  };
1167
1178
  }
1179
+ return (props) => render;
1168
1180
  }
1169
1181
  /**
1170
1182
  * The activities that are available in this room.
@@ -1325,14 +1337,16 @@ var RoomBaseModel = class extends StoredClassModel {
1325
1337
  * The function for rendering the icon of the room.
1326
1338
  */
1327
1339
  get renderIcon() {
1328
- if (typeof this._renderIcon !== "function") {
1329
- return (props) => this._renderIcon;
1340
+ let render = this._renderIcon;
1341
+ if (render === void 0) {
1342
+ return void 0;
1330
1343
  }
1331
- if (this._renderIcon !== void 0) {
1344
+ if (typeof render === "function") {
1332
1345
  return (props) => {
1333
- return this._renderIcon(this, props);
1346
+ return render(this, props);
1334
1347
  };
1335
1348
  }
1349
+ return (props) => render;
1336
1350
  }
1337
1351
  /**
1338
1352
  * Get the character commitments of the room.