@adatechnology/game-floorplan-three 0.4.0 → 0.4.1
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/dist/index.global.js +9 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
package/dist/index.global.js
CHANGED
|
@@ -10895,6 +10895,13 @@ uniform mat4 uNodes[${nodes.length}]; attribute float aNodeIndex; attribute vec3
|
|
|
10895
10895
|
const flame = flameBase * (1 - rules.flameFillInfluence * (1 - k));
|
|
10896
10896
|
return 1 - (1 - Math.min(1, Math.max(0, spark))) * (1 - Math.min(1, Math.max(0, flame)));
|
|
10897
10897
|
};
|
|
10898
|
+
var KIT_ORIGIN_KEY = "kitOrigin";
|
|
10899
|
+
function markKitOrigin(object2, origin) {
|
|
10900
|
+
const node = object2;
|
|
10901
|
+
node.userData = node.userData ?? {};
|
|
10902
|
+
node.userData[KIT_ORIGIN_KEY] = { ...origin };
|
|
10903
|
+
return object2;
|
|
10904
|
+
}
|
|
10898
10905
|
|
|
10899
10906
|
// ../game-destruction/dist/index.js
|
|
10900
10907
|
var FIRE_PRIME_C = 300;
|
|
@@ -19630,7 +19637,7 @@ uniform mat4 uNodes[${nodes.length}]; attribute float aNodeIndex; attribute vec3
|
|
|
19630
19637
|
assembleInteractive(gs);
|
|
19631
19638
|
linkDoorLeaves();
|
|
19632
19639
|
mailboxInteractive();
|
|
19633
|
-
const root = new THREE.Group(), house = new THREE.Group();
|
|
19640
|
+
const root = markKitOrigin(new THREE.Group(), { owner: "game-floorplan-three", kind: "structure", id: r.template }), house = new THREE.Group();
|
|
19634
19641
|
root.name = "house3d";
|
|
19635
19642
|
root.add(house);
|
|
19636
19643
|
shared.mirrors.house = house;
|
|
@@ -22668,7 +22675,7 @@ uniform mat4 uNodes[${nodes.length}]; attribute float aNodeIndex; attribute vec3
|
|
|
22668
22675
|
const spec = { name, parts, joints, tags: ["furniture"] };
|
|
22669
22676
|
const colors = new Map(drawn.map((p) => [p.id, p.color]));
|
|
22670
22677
|
const build = (T3) => {
|
|
22671
|
-
const group = new T3.Group();
|
|
22678
|
+
const group = markKitOrigin(new T3.Group(), { owner: "game-floorplan-three", kind: "furniture", id: name });
|
|
22672
22679
|
group.name = name;
|
|
22673
22680
|
const mats = /* @__PURE__ */ new Map();
|
|
22674
22681
|
for (const p of parts) {
|