@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.
- package/dist/classes/Activity.js +10 -12
- package/dist/classes/Activity.js.map +1 -1
- package/dist/classes/Activity.mjs +10 -12
- package/dist/classes/Activity.mjs.map +1 -1
- package/dist/classes/Commitment.js +5 -6
- package/dist/classes/Commitment.js.map +1 -1
- package/dist/classes/Commitment.mjs +5 -6
- package/dist/classes/Commitment.mjs.map +1 -1
- package/dist/classes/index.js +10 -12
- package/dist/classes/index.js.map +1 -1
- package/dist/classes/index.mjs +10 -12
- package/dist/classes/index.mjs.map +1 -1
- package/dist/classes/navigation/ActivityRoom.js +5 -6
- package/dist/classes/navigation/ActivityRoom.js.map +1 -1
- package/dist/classes/navigation/ActivityRoom.mjs +5 -6
- package/dist/classes/navigation/ActivityRoom.mjs.map +1 -1
- package/dist/classes/navigation/Location.js +5 -6
- package/dist/classes/navigation/Location.js.map +1 -1
- package/dist/classes/navigation/Location.mjs +5 -6
- package/dist/classes/navigation/Location.mjs.map +1 -1
- package/dist/classes/navigation/Map.js +5 -6
- package/dist/classes/navigation/Map.js.map +1 -1
- package/dist/classes/navigation/Map.mjs +5 -6
- package/dist/classes/navigation/Map.mjs.map +1 -1
- package/dist/classes/navigation/Room.js +15 -18
- package/dist/classes/navigation/Room.js.map +1 -1
- package/dist/classes/navigation/Room.mjs +15 -18
- package/dist/classes/navigation/Room.mjs.map +1 -1
- package/dist/classes/navigation/index.js +25 -30
- package/dist/classes/navigation/index.js.map +1 -1
- package/dist/classes/navigation/index.mjs +25 -30
- package/dist/classes/navigation/index.mjs.map +1 -1
- package/dist/functions/ActivityFunctions.js.map +1 -1
- package/dist/functions/ActivityFunctions.mjs.map +1 -1
- package/dist/functions/NavigationFunctions.js +5 -6
- package/dist/functions/NavigationFunctions.js.map +1 -1
- package/dist/functions/NavigationFunctions.mjs +5 -6
- package/dist/functions/NavigationFunctions.mjs.map +1 -1
- package/dist/functions/index.js +5 -6
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/index.mjs +5 -6
- package/dist/functions/index.mjs.map +1 -1
- package/dist/index.js +35 -42
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -42
- package/dist/index.mjs.map +1 -1
- 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
|
-
|
|
363
|
+
let render = this._renderIcon;
|
|
364
|
+
if (render === void 0) {
|
|
364
365
|
return void 0;
|
|
365
366
|
}
|
|
366
|
-
if (typeof
|
|
367
|
-
return (props) => this._renderIcon;
|
|
368
|
-
}
|
|
369
|
-
if (this._renderIcon !== void 0) {
|
|
367
|
+
if (typeof render === "function") {
|
|
370
368
|
return (props) => {
|
|
371
|
-
return
|
|
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
|
-
|
|
489
|
+
let render = this._renderIcon;
|
|
490
|
+
if (render === void 0) {
|
|
491
491
|
return void 0;
|
|
492
492
|
}
|
|
493
|
-
if (typeof
|
|
494
|
-
return (props) => this._renderIcon;
|
|
495
|
-
}
|
|
496
|
-
if (this._renderIcon !== void 0) {
|
|
493
|
+
if (typeof render === "function") {
|
|
497
494
|
return (props) => {
|
|
498
|
-
return
|
|
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
|
-
|
|
627
|
+
let render = this._renderImage;
|
|
628
|
+
if (render === void 0) {
|
|
630
629
|
return void 0;
|
|
631
630
|
}
|
|
632
|
-
if (typeof
|
|
633
|
-
return (props) => this._renderImage;
|
|
634
|
-
}
|
|
635
|
-
if (this.renderImage !== void 0) {
|
|
631
|
+
if (typeof render === "function") {
|
|
636
632
|
return (props) => {
|
|
637
|
-
return
|
|
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
|
-
|
|
803
|
+
let render = this._renderIcon;
|
|
804
|
+
if (render === void 0) {
|
|
807
805
|
return void 0;
|
|
808
806
|
}
|
|
809
|
-
if (typeof
|
|
810
|
-
return (props) => this._renderIcon;
|
|
811
|
-
}
|
|
812
|
-
if (this._renderIcon !== void 0) {
|
|
807
|
+
if (typeof render === "function") {
|
|
813
808
|
return (props) => {
|
|
814
|
-
return
|
|
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
|
-
|
|
877
|
+
let render = this._renderImage;
|
|
878
|
+
if (render === void 0) {
|
|
882
879
|
return void 0;
|
|
883
880
|
}
|
|
884
|
-
if (typeof
|
|
885
|
-
return (props) => this._renderImage;
|
|
886
|
-
}
|
|
887
|
-
if (this.renderImage !== void 0) {
|
|
881
|
+
if (typeof render === "function") {
|
|
888
882
|
return (props) => {
|
|
889
|
-
return
|
|
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
|
-
|
|
1170
|
+
let render = this._renderImage;
|
|
1171
|
+
if (render === void 0) {
|
|
1176
1172
|
return void 0;
|
|
1177
1173
|
}
|
|
1178
|
-
if (typeof
|
|
1179
|
-
return (props) => this._renderImage;
|
|
1180
|
-
}
|
|
1181
|
-
if (this.renderImage !== void 0) {
|
|
1174
|
+
if (typeof render === "function") {
|
|
1182
1175
|
return (props) => {
|
|
1183
|
-
return
|
|
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
|
-
|
|
1340
|
+
let render = this._renderIcon;
|
|
1341
|
+
if (render === void 0) {
|
|
1347
1342
|
return void 0;
|
|
1348
1343
|
}
|
|
1349
|
-
if (typeof
|
|
1350
|
-
return (props) => this._renderIcon;
|
|
1351
|
-
}
|
|
1352
|
-
if (this._renderIcon !== void 0) {
|
|
1344
|
+
if (typeof render === "function") {
|
|
1353
1345
|
return (props) => {
|
|
1354
|
-
return
|
|
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.
|