@woosh/meep-engine 2.123.11 → 2.124.0

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "description": "Fully featured ECS game engine written in JavaScript",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.123.11",
8
+ "version": "2.124.0",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -5,10 +5,10 @@ export class WeightedElement<T> {
5
5
  /**
6
6
  * @template T
7
7
  * @param {T} element
8
- * @param {number} weight
8
+ * @param {number} [weight]
9
9
  * @returns {WeightedElement<T>}
10
10
  */
11
- static from<T_1>(element: T_1, weight: number): WeightedElement<T_1>;
11
+ static from<T_1>(element: T_1, weight?: number): WeightedElement<T_1>;
12
12
  /**
13
13
  * @template X
14
14
  * @param {WeightedElement<X>} object
@@ -1 +1 @@
1
- {"version":3,"file":"WeightedElement.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/intelligence/behavior/selector/WeightedElement.js"],"names":[],"mappings":"AAMA;;GAEG;AACH,6BAFa,CAAC;IAaV;;;;;OAKG;IACH,0BAJW,GAAC,UACD,MAAM,GACJ,eAAe,CAAC,GAAC,CAAC,CAgB9B;IAED;;;;OAIG;IACH,iBAJa,CAAC,UACH,eAAe,CAAC,CAAC,CAAC,GACjB,MAAM,CAIjB;IArCD,eAAW;IAEX;;;OAGG;IACH,MAFU,CAAC,CAEC;IAiCZ;;;;OAIG;IACH,cAHW,CAAC,GACA,OAAO,CAKlB;IAED;;;OAGG;IACH,QAFY,MAAM,CAOjB;IAGL;;;OAGG;IACH,4BAFU,OAAO,CAE0B;CAN1C"}
1
+ {"version":3,"file":"WeightedElement.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/intelligence/behavior/selector/WeightedElement.js"],"names":[],"mappings":"AAMA;;GAEG;AACH,6BAFa,CAAC;IAaV;;;;;OAKG;IACH,0BAJW,GAAC,WACD,MAAM,GACJ,eAAe,CAAC,GAAC,CAAC,CAgB9B;IAED;;;;OAIG;IACH,iBAJa,CAAC,UACH,eAAe,CAAC,CAAC,CAAC,GACjB,MAAM,CAIjB;IArCD,eAAW;IAEX;;;OAGG;IACH,MAFU,CAAC,CAEC;IAiCZ;;;;OAIG;IACH,cAHW,CAAC,GACA,OAAO,CAKlB;IAED;;;OAGG;IACH,QAFY,MAAM,CAOjB;IAGL;;;OAGG;IACH,4BAFU,OAAO,CAE0B;CAN1C"}
@@ -21,10 +21,10 @@ export class WeightedElement {
21
21
  /**
22
22
  * @template T
23
23
  * @param {T} element
24
- * @param {number} weight
24
+ * @param {number} [weight]
25
25
  * @returns {WeightedElement<T>}
26
26
  */
27
- static from(element, weight) {
27
+ static from(element, weight = 1) {
28
28
  assert.defined(element, 'element');
29
29
 
30
30
  assert.isNumber(weight, 'weight');