pw-js-world 0.4.1-dev.d8bbe6e → 0.4.2-dev.9b4e7f9
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/cm/Constants.d.ts +2 -1
- package/cm/Constants.js +2 -1
- package/cm/Helper.js +1 -1
- package/esm/Constants.d.ts +2 -1
- package/esm/Constants.js +2 -1
- package/esm/Helper.js +1 -1
- package/package.json +1 -1
package/cm/Constants.d.ts
CHANGED
package/cm/Constants.js
CHANGED
|
@@ -5,5 +5,6 @@ var LayerType;
|
|
|
5
5
|
(function (LayerType) {
|
|
6
6
|
LayerType[LayerType["Background"] = 0] = "Background";
|
|
7
7
|
LayerType[LayerType["Foreground"] = 1] = "Foreground";
|
|
8
|
+
LayerType[LayerType["Overlay"] = 2] = "Overlay";
|
|
8
9
|
})(LayerType || (exports.LayerType = LayerType = {}));
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL0NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxJQUFZLFNBSVg7QUFKRCxXQUFZLFNBQVM7SUFDakIscURBQVUsQ0FBQTtJQUNWLHFEQUFVLENBQUE7SUFDViwrQ0FBTyxDQUFBO0FBQ1gsQ0FBQyxFQUpXLFNBQVMseUJBQVQsU0FBUyxRQUlwQiJ9
|
package/cm/Helper.js
CHANGED
|
@@ -450,7 +450,7 @@ class PWGameWorldHelper {
|
|
|
450
450
|
y = x.y;
|
|
451
451
|
x = x.x;
|
|
452
452
|
}
|
|
453
|
-
if (l === undefined || l < 0 || l >
|
|
453
|
+
if (l === undefined || l < 0 || l > 2)
|
|
454
454
|
throw Error("Unknown layer");
|
|
455
455
|
if (x < 0 || x >= this.width)
|
|
456
456
|
throw Error("X is outside the bound of the world.");
|
package/esm/Constants.d.ts
CHANGED
package/esm/Constants.js
CHANGED
|
@@ -2,5 +2,6 @@ export var LayerType;
|
|
|
2
2
|
(function (LayerType) {
|
|
3
3
|
LayerType[LayerType["Background"] = 0] = "Background";
|
|
4
4
|
LayerType[LayerType["Foreground"] = 1] = "Foreground";
|
|
5
|
+
LayerType[LayerType["Overlay"] = 2] = "Overlay";
|
|
5
6
|
})(LayerType || (LayerType = {}));
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL0NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxTQUlYO0FBSkQsV0FBWSxTQUFTO0lBQ2pCLHFEQUFVLENBQUE7SUFDVixxREFBVSxDQUFBO0lBQ1YsK0NBQU8sQ0FBQTtBQUNYLENBQUMsRUFKVyxTQUFTLEtBQVQsU0FBUyxRQUlwQiJ9
|
package/esm/Helper.js
CHANGED
|
@@ -447,7 +447,7 @@ export default class PWGameWorldHelper {
|
|
|
447
447
|
y = x.y;
|
|
448
448
|
x = x.x;
|
|
449
449
|
}
|
|
450
|
-
if (l === undefined || l < 0 || l >
|
|
450
|
+
if (l === undefined || l < 0 || l > 2)
|
|
451
451
|
throw Error("Unknown layer");
|
|
452
452
|
if (x < 0 || x >= this.width)
|
|
453
453
|
throw Error("X is outside the bound of the world.");
|