@woosh/meep-engine 2.110.5 → 2.110.7
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 +6 -4
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +6 -4
- package/package.json +1 -1
- package/src/core/geom/2d/aabb/AABB2.d.ts +2 -0
- package/src/core/geom/2d/aabb/AABB2.d.ts.map +1 -1
- package/src/core/geom/2d/aabb/AABB2.js +3 -1
- package/src/engine/ecs/EntityComponentDataset.d.ts.map +1 -1
- package/src/engine/ecs/EntityComponentDataset.js +5 -4
- package/src/engine/ecs/components/Tag.d.ts +2 -0
- package/src/engine/graphics/material/manager/MaterialManager.d.ts.map +1 -1
- package/src/engine/graphics/material/manager/MaterialManager.js +3 -3
package/build/meep.cjs
CHANGED
|
@@ -80700,8 +80700,10 @@ class AABB2 {
|
|
|
80700
80700
|
*
|
|
80701
80701
|
* @param {Vector2} result
|
|
80702
80702
|
*/
|
|
80703
|
-
getCenter(result) {
|
|
80703
|
+
getCenter(result = new Vector2()) {
|
|
80704
80704
|
result.set(this.centerX, this.centerY);
|
|
80705
|
+
|
|
80706
|
+
return result;
|
|
80705
80707
|
}
|
|
80706
80708
|
|
|
80707
80709
|
/**
|
|
@@ -94736,11 +94738,11 @@ class EntityComponentDataset {
|
|
|
94736
94738
|
|
|
94737
94739
|
/**
|
|
94738
94740
|
* @template T
|
|
94739
|
-
* @param {number}
|
|
94741
|
+
* @param {number} entity_id
|
|
94740
94742
|
* @param {Class<T>} klass
|
|
94741
94743
|
* @returns {T|undefined}
|
|
94742
94744
|
*/
|
|
94743
|
-
getComponent(
|
|
94745
|
+
getComponent(entity_id, klass) {
|
|
94744
94746
|
|
|
94745
94747
|
const componentIndex = this.computeComponentTypeIndex(klass);
|
|
94746
94748
|
|
|
@@ -94749,7 +94751,7 @@ class EntityComponentDataset {
|
|
|
94749
94751
|
return undefined;
|
|
94750
94752
|
}
|
|
94751
94753
|
|
|
94752
|
-
return this.getComponentByIndex(
|
|
94754
|
+
return this.getComponentByIndex(entity_id, componentIndex);
|
|
94753
94755
|
}
|
|
94754
94756
|
|
|
94755
94757
|
/**
|