@woosh/meep-engine 2.39.5 → 2.39.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/core/binary/BinaryBuffer.js +1 -0
- package/core/math/FLT_EPSILON_32.js +7 -0
- package/core/math/random/seededRandom_Mulberry32.js +1 -1
- package/core/model/stat/LinearModifier.js +7 -0
- package/core/process/task/RemainingTimeEstimator.js +49 -0
- package/core/process/task/Task.js +3 -1
- package/engine/Engine.js +3 -69
- package/engine/asset/AssetManager.d.ts +3 -0
- package/engine/asset/AssetManager.js +5 -4
- package/engine/ecs/terrain/ecs/Terrain.js +33 -0
- package/engine/ecs/terrain/ecs/layers/TerrainLayer.js +13 -0
- package/engine/ecs/terrain/ecs/layers/TerrainLayers.js +44 -2
- package/engine/ecs/terrain/ecs/splat/SplatMapping.js +12 -4
- package/engine/graphics/ecs/path/testPathDisplaySystem.js +58 -53
- package/engine/graphics/ecs/path/tube/PathNormalType.d.ts +4 -0
- package/engine/graphics/ecs/path/tube/PathNormalType.js +11 -0
- package/engine/graphics/ecs/path/tube/TubePathStyle.d.ts +4 -0
- package/engine/graphics/ecs/path/tube/TubePathStyle.js +21 -3
- package/engine/graphics/ecs/path/tube/build/build_geometry_catmullrom.js +4 -1
- package/engine/graphics/ecs/path/tube/build/build_geometry_linear.js +4 -1
- package/engine/graphics/ecs/path/tube/build/computeFrenetFrames.js +41 -24
- package/engine/graphics/geometry/VertexDataSpec.js +24 -0
- package/engine/graphics/shaders/TerrainShader.js +3 -7
- package/engine/knowledge/database/StaticKnowledgeDataTable.js +66 -28
- package/engine/navigation/ecs/components/Path.js +58 -232
- package/engine/notify/Notification.js +3 -0
- package/engine/ui/notification/AnimatedObjectEmitter.js +3 -2
- package/engine/ui/notification/ViewEmitter.js +8 -0
- package/engine/ui/scene/initializeNotifications.js +3 -0
- package/generation/{GridGenerator.js → GridTaskGroup.js} +21 -5
- package/generation/example/SampleGenerator0.js +2 -2
- package/generation/filtering/core/CellFilterUnaryOperation.js +5 -8
- package/generation/filtering/numeric/util/CellFilterDisplaced.js +7 -7
- package/generation/grid/generation/GridTaskSequence.js +5 -3
- package/generation/markers/actions/MarkerNodeActionImaginary.js +86 -0
- package/generation/markers/actions/terrain/MarkerNodeActionPaintTerrain.js +265 -0
- package/generation/theme/TerrainLayerDescription.js +11 -0
- package/generation/theme/ThemeEngine.js +5 -6
- package/package.json +1 -1
- package/view/common/ListView.js +7 -1
- package/view/elements/windrose/WindRoseDiagram.js +13 -0
- package/view/task/TaskLoadingScreen.js +163 -0
- package/view/{common → task}/TaskProgressView.js +4 -36
- package/view/tooltip/gml/GMLEngine.js +13 -0
- package/generation/markers/actions/MarkerNodeActionSelectRandom.js +0 -65
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { seededRandom } from "../../../core/math/random/seededRandom.js";
|
|
2
|
-
import { MarkerNodeAction } from "./MarkerNodeAction.js";
|
|
3
|
-
import { assert } from "../../../core/assert.js";
|
|
4
|
-
import { randomFromArray } from "../../../core/math/random/randomFromArray.js";
|
|
5
|
-
|
|
6
|
-
export class MarkerNodeActionSelectRandom extends MarkerNodeAction {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @type {MarkerNodeAction[]}
|
|
14
|
-
*/
|
|
15
|
-
this.elements = [];
|
|
16
|
-
|
|
17
|
-
this.__random = seededRandom(0);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @param {MarkerNodeAction[]} elements
|
|
23
|
-
* @returns {MarkerNodeActionSelectRandom}
|
|
24
|
-
*/
|
|
25
|
-
static from(elements) {
|
|
26
|
-
const r = new MarkerNodeActionSelectRandom();
|
|
27
|
-
|
|
28
|
-
r.elements = elements;
|
|
29
|
-
|
|
30
|
-
return r
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
initialize(grid, ecd, seed) {
|
|
34
|
-
const actions = this.elements;
|
|
35
|
-
const n = actions.length;
|
|
36
|
-
|
|
37
|
-
assert.greaterThan(n, 0, `Number of option elements must be greater than 0`);
|
|
38
|
-
|
|
39
|
-
for (let i = 0; i < n; i++) {
|
|
40
|
-
const action = actions[i];
|
|
41
|
-
|
|
42
|
-
action.initialize(grid, ecd, seed + i);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
this.__random.setCurrentSeed(seed);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
execute(grid, ecd, node) {
|
|
49
|
-
|
|
50
|
-
assert.defined(grid, 'grid');
|
|
51
|
-
assert.equal(grid.isGridData, true, 'grid.isGridData !== true');
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
assert.defined(ecd, 'ecd');
|
|
55
|
-
assert.equal(ecd.isEntityComponentDataset, true, 'ecd.isEntityComponentDataset !== true');
|
|
56
|
-
|
|
57
|
-
assert.defined(node, 'node');
|
|
58
|
-
assert.equal(node.isMarkerNode, true, 'node.isMarkerNode !== true');
|
|
59
|
-
|
|
60
|
-
const action = randomFromArray(this.__random, this.elements);
|
|
61
|
-
|
|
62
|
-
action.execute(grid, ecd, node);
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
}
|