@adatechnology/game-floorplan-three 0.4.0 → 0.4.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/dist/index.global.js +35 -5
- 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.js
CHANGED
|
@@ -6715,6 +6715,7 @@ function installDestructionWorld(K, shared) {
|
|
|
6715
6715
|
}
|
|
6716
6716
|
|
|
6717
6717
|
// src/build/build.ts
|
|
6718
|
+
import { markKitOrigin } from "@adatechnology/game-contracts";
|
|
6718
6719
|
function installBuildBuild(K, shared) {
|
|
6719
6720
|
const { THREE, cfg, rectsOf: rectsOf2, invalidateShadow, colliderChanged, VERSION: VERSION2, CARS, EPS, LIGHTS, MIRRORS, Y0, animateClotheslines, animateDoors, animateInteractive, applyLeaf, applyOutbuildings, applyPart, applyPiece, assembleInteractive, baseboardAndSidewalk, buildStairs, building, carModel, chooseMirror, closeScene, collideAt, createWater, cursor, doorText, doors, electricalStructure, elevator, floorsAndSlabs, gatesInteractive, houseItems, ivAssemble, ivBuild, ivDispose, ivParts, ivPublish, ivUpdate, lightOn, linkDoorLeaves, mailboxInteractive, newInteractiveState, newMirrorState, outbuildings, paths, perimeter, placeSwitches, roofs, roomAt, solar, targetOf, terrain, toggleDoor, toggleLight, walls, waterPipes, windows, props, TYPES, IVK, VEG, vegMaterials, markGroups, assembleStructure, createHouseDestruction, newState, enter, tagDamage } = K;
|
|
6720
6721
|
function build(r0, opts) {
|
|
@@ -6821,7 +6822,7 @@ function installBuildBuild(K, shared) {
|
|
|
6821
6822
|
assembleInteractive(gs);
|
|
6822
6823
|
linkDoorLeaves();
|
|
6823
6824
|
mailboxInteractive();
|
|
6824
|
-
const root = new THREE.Group(), house = new THREE.Group();
|
|
6825
|
+
const root = markKitOrigin(new THREE.Group(), { owner: "game-floorplan-three", kind: "structure", id: r.template }), house = new THREE.Group();
|
|
6825
6826
|
root.name = "house3d";
|
|
6826
6827
|
root.add(house);
|
|
6827
6828
|
shared.mirrors.house = house;
|
|
@@ -8562,6 +8563,7 @@ function createFloorplanTestModule(options = {}) {
|
|
|
8562
8563
|
|
|
8563
8564
|
// src/furniture/spec.ts
|
|
8564
8565
|
import { inferJoints } from "@adatechnology/game-destruction";
|
|
8566
|
+
import { markKitOrigin as markKitOrigin2 } from "@adatechnology/game-contracts";
|
|
8565
8567
|
import { residentialItems } from "@adatechnology/game-floorplan-residential";
|
|
8566
8568
|
var WOOD_THIN = 0.035;
|
|
8567
8569
|
var FLOOR_TOUCH = 5e-3;
|
|
@@ -8682,7 +8684,7 @@ function recordSpec(THREE, name, root, run, opts) {
|
|
|
8682
8684
|
const spec = { name, parts, joints, tags: ["furniture"] };
|
|
8683
8685
|
const colors = new Map(drawn.map((p) => [p.id, p.color]));
|
|
8684
8686
|
const build = (T3) => {
|
|
8685
|
-
const group = new T3.Group();
|
|
8687
|
+
const group = markKitOrigin2(new T3.Group(), { owner: "game-floorplan-three", kind: "furniture", id: name });
|
|
8686
8688
|
group.name = name;
|
|
8687
8689
|
const mats = /* @__PURE__ */ new Map();
|
|
8688
8690
|
for (const p of parts) {
|