@woosh/meep-engine 2.86.4 → 2.86.6
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/build/meep.cjs +20 -16
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +20 -16
- package/package.json +1 -1
- package/src/engine/ecs/terrain/ecs/Terrain.d.ts.map +1 -1
- package/src/engine/ecs/terrain/ecs/Terrain.js +4 -2
- package/src/engine/ecs/terrain/tiles/TerrainTileManager.d.ts.map +1 -1
- package/src/engine/ecs/terrain/tiles/TerrainTileManager.js +9 -9
- package/src/engine/graphics/texture/sampler/filter/sampler2d_blur_gaussian.d.ts +1 -0
- package/src/engine/graphics/texture/sampler/filter/sampler2d_blur_gaussian.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/filter/sampler2d_blur_gaussian.js +36 -10
package/build/meep.cjs
CHANGED
|
@@ -54284,13 +54284,6 @@ Color.black = Object.freeze(new Color(0, 0, 0));
|
|
|
54284
54284
|
*/
|
|
54285
54285
|
Color.transparent = Object.freeze(new Color(0, 0, 0, 0));
|
|
54286
54286
|
|
|
54287
|
-
/**
|
|
54288
|
-
* No-operation function. Does nothing. Useful when a callback is required to avoid checks for a missing function.
|
|
54289
|
-
* @param {*} arguments
|
|
54290
|
-
*/
|
|
54291
|
-
function noop() {
|
|
54292
|
-
}
|
|
54293
|
-
|
|
54294
54287
|
/**
|
|
54295
54288
|
* Returns true if two 1D lines overlap, touch is not considered overlap
|
|
54296
54289
|
* Parameters are assumed to be ordered, a1 > a0, b1 > b0
|
|
@@ -58479,16 +58472,16 @@ class TerrainTileManager {
|
|
|
58479
58472
|
return Promise.resolve(tile);
|
|
58480
58473
|
|
|
58481
58474
|
} else {
|
|
58482
|
-
const promise = new Promise((resolve, reject) => {
|
|
58483
|
-
tile.onBuilt.addOne(resolve);
|
|
58484
|
-
tile.onDestroyed.addOne(reject);
|
|
58485
|
-
});
|
|
58486
58475
|
|
|
58487
58476
|
if (!tile.isBuildInProgress) {
|
|
58488
|
-
this.build(x, y,
|
|
58477
|
+
return new Promise((resolve, reject) => this.build(x, y, resolve, reject));
|
|
58478
|
+
} else {
|
|
58479
|
+
return new Promise((resolve, reject) => {
|
|
58480
|
+
tile.onBuilt.addOne(resolve);
|
|
58481
|
+
tile.onDestroyed.addOne(reject);
|
|
58482
|
+
});
|
|
58489
58483
|
}
|
|
58490
58484
|
|
|
58491
|
-
return promise;
|
|
58492
58485
|
}
|
|
58493
58486
|
|
|
58494
58487
|
}
|
|
@@ -58604,7 +58597,7 @@ class TerrainTileManager {
|
|
|
58604
58597
|
|
|
58605
58598
|
const tile = this.tiles[tile_index];
|
|
58606
58599
|
|
|
58607
|
-
if(!tile.isBuilt){
|
|
58600
|
+
if (!tile.isBuilt) {
|
|
58608
58601
|
continue;
|
|
58609
58602
|
}
|
|
58610
58603
|
|
|
@@ -58701,6 +58694,8 @@ class TerrainTileManager {
|
|
|
58701
58694
|
// console.timeEnd(processName);
|
|
58702
58695
|
|
|
58703
58696
|
this.on.tileBuilt.send1(tile);
|
|
58697
|
+
|
|
58698
|
+
resolve(tile);
|
|
58704
58699
|
}, reject);
|
|
58705
58700
|
}
|
|
58706
58701
|
}
|
|
@@ -63659,6 +63654,13 @@ function array_push_if_unique(array, element) {
|
|
|
63659
63654
|
return false;
|
|
63660
63655
|
}
|
|
63661
63656
|
|
|
63657
|
+
/**
|
|
63658
|
+
* No-operation function. Does nothing. Useful when a callback is required to avoid checks for a missing function.
|
|
63659
|
+
* @param {*} arguments
|
|
63660
|
+
*/
|
|
63661
|
+
function noop() {
|
|
63662
|
+
}
|
|
63663
|
+
|
|
63662
63664
|
/**
|
|
63663
63665
|
* Created by Alex on 25/08/2016.
|
|
63664
63666
|
*/
|
|
@@ -65121,8 +65123,10 @@ class Terrain {
|
|
|
65121
65123
|
const promisedTiles = [];
|
|
65122
65124
|
|
|
65123
65125
|
tiles.traverse(function (tile) {
|
|
65124
|
-
const
|
|
65125
|
-
|
|
65126
|
+
const position = tile.gridPosition;
|
|
65127
|
+
|
|
65128
|
+
const x = position.x;
|
|
65129
|
+
const y = position.y;
|
|
65126
65130
|
|
|
65127
65131
|
const tilePromise = tiles.obtain(x, y);
|
|
65128
65132
|
|