@woosh/meep-engine 2.39.30 → 2.39.31
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.
|
@@ -9,6 +9,14 @@ import { TaskSignal } from "../task/TaskSignal.js";
|
|
|
9
9
|
import TaskState from "../task/TaskState.js";
|
|
10
10
|
import { clamp } from "../../math/clamp.js";
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @param {TaskGroup|Task} t
|
|
15
|
+
* @returns {boolean}
|
|
16
|
+
*/
|
|
17
|
+
function isGroup(t) {
|
|
18
|
+
return t.children instanceof Array;
|
|
19
|
+
}
|
|
12
20
|
|
|
13
21
|
/**
|
|
14
22
|
* @class
|
|
@@ -110,9 +118,6 @@ class ConcurrentExecutor {
|
|
|
110
118
|
signalFailure(reason);
|
|
111
119
|
}
|
|
112
120
|
|
|
113
|
-
function isGroup(t) {
|
|
114
|
-
return t.children instanceof Array;
|
|
115
|
-
}
|
|
116
121
|
|
|
117
122
|
if (numChildren > 0) {
|
|
118
123
|
taskGroup.state.set(TaskState.RUNNING);
|
|
@@ -133,6 +138,25 @@ class ConcurrentExecutor {
|
|
|
133
138
|
}
|
|
134
139
|
}
|
|
135
140
|
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @param {TaskGroup} group
|
|
144
|
+
*/
|
|
145
|
+
removeGroup(group) {
|
|
146
|
+
const children = group.children;
|
|
147
|
+
const n = children.length;
|
|
148
|
+
|
|
149
|
+
for (let i = 0; i < n; i++) {
|
|
150
|
+
const child = children[i];
|
|
151
|
+
|
|
152
|
+
if (isGroup(child)) {
|
|
153
|
+
this.removeGroup(child);
|
|
154
|
+
} else {
|
|
155
|
+
this.removeTask(child);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
136
160
|
/**
|
|
137
161
|
*
|
|
138
162
|
* @param {Task} task
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"productName": "Meep",
|
|
6
6
|
"description": "production-ready JavaScript game engine based on Entity Component System Architecture",
|
|
7
7
|
"author": "Alexander Goldring",
|
|
8
|
-
"version": "2.39.
|
|
8
|
+
"version": "2.39.31",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"gl-matrix": "3.4.3",
|
|
11
11
|
"fast-levenshtein": "2.0.6",
|