@woosh/meep-engine 2.88.0 → 2.88.2
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 +17 -1
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +17 -1
- package/package.json +1 -1
- package/src/engine/ecs/terrain/util/paintTerrainOverlayViaLookupTable.d.ts +3 -1
- package/src/engine/ecs/terrain/util/paintTerrainOverlayViaLookupTable.d.ts.map +1 -1
- package/src/engine/ecs/terrain/util/paintTerrainOverlayViaLookupTable.js +4 -2
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMesh.d.ts.map +1 -1
- package/src/engine/graphics/ecs/mesh-v2/aggregate/SGMesh.js +17 -1
- package/src/engine/grid/obstacle/GridObstacle.d.ts.map +1 -1
- package/src/engine/grid/obstacle/GridObstacle.js +4 -4
package/build/meep.cjs
CHANGED
|
@@ -66745,7 +66745,7 @@ class SGMesh {
|
|
|
66745
66745
|
* Do not modify contents unless you know exactly what you're doing
|
|
66746
66746
|
* @returns {EntityNode|null}
|
|
66747
66747
|
*/
|
|
66748
|
-
get node(){
|
|
66748
|
+
get node() {
|
|
66749
66749
|
return this.__node;
|
|
66750
66750
|
}
|
|
66751
66751
|
|
|
@@ -66957,6 +66957,22 @@ class SGMesh {
|
|
|
66957
66957
|
|
|
66958
66958
|
return r;
|
|
66959
66959
|
}
|
|
66960
|
+
|
|
66961
|
+
toJSON() {
|
|
66962
|
+
return {
|
|
66963
|
+
url: this.__url,
|
|
66964
|
+
receiveShadow: this.receiveShadow,
|
|
66965
|
+
castShadow: this.castShadow,
|
|
66966
|
+
};
|
|
66967
|
+
}
|
|
66968
|
+
|
|
66969
|
+
fromJSON({ url, receiveShadow = true, castShadow = true }) {
|
|
66970
|
+
this.clearFlag(SGMeshFlags.Loaded);
|
|
66971
|
+
|
|
66972
|
+
this.__url = url;
|
|
66973
|
+
this.receiveShadow = receiveShadow;
|
|
66974
|
+
this.castShadow = castShadow;
|
|
66975
|
+
}
|
|
66960
66976
|
}
|
|
66961
66977
|
|
|
66962
66978
|
SGMesh.typeName = "SGMesh";
|