@adatechnology/game-vegetation-three 0.2.0 → 0.2.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.js CHANGED
@@ -244,6 +244,7 @@ function createNursery(sdk, species, THREE, materials, parent, origin) {
244
244
  }
245
245
 
246
246
  // src/test-area/plants.ts
247
+ import { markKitOrigin } from "@adatechnology/game-contracts";
247
248
  var PLANT_SEED = 3;
248
249
  var PLANT_DEFS = [
249
250
  { id: "mango_tree", kind: "tree", sway: true },
@@ -286,7 +287,7 @@ function createPlants(sdk, species, materials, seed = PLANT_SEED) {
286
287
  return plant;
287
288
  };
288
289
  function buildObject(THREE, def) {
289
- const root = new THREE.Group();
290
+ const root = markKitOrigin(new THREE.Group(), { owner: "game-vegetation-three", kind: "plant", id: def.base ?? def.id });
290
291
  root.name = def.id;
291
292
  const segments = def.segments ?? 1;
292
293
  let spacing = 0;