@adatechnology/game-items-three 0.10.7 → 0.11.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.js CHANGED
@@ -65,7 +65,7 @@ import {
65
65
  turnItem,
66
66
  unregisterItemModel,
67
67
  wearableMaterials
68
- } from "./chunk-S4UUQQOL.js";
68
+ } from "./chunk-64JEKMFT.js";
69
69
 
70
70
  // src/contained.ts
71
71
  function createContainedItemModel(items, options = {}) {
@@ -1,6 +1,6 @@
1
1
  import * as THREE_NS from 'three';
2
- import { Vec3, AreaPlacement, TestableModule } from '@adatechnology/game-contracts';
3
- import { FindStack, ItemsCatalog, FindsProvider } from '@adatechnology/game-items';
2
+ import { Vec3, AreaPlacement, TestableModule, ModuleItemUse } from '@adatechnology/game-contracts';
3
+ import { FindStack, ItemsCatalog, FindsProvider, ItemDef } from '@adatechnology/game-items';
4
4
 
5
5
  type Three = typeof THREE_NS;
6
6
  /** The material tags the team's showcase wears: what `setWear` turns toward its spoiled colour. */
@@ -136,6 +136,8 @@ interface ItemsTestModuleOptions {
136
136
  person?: (THREE: unknown) => THREE_NS.Object3D;
137
137
  /** The models to show and draw with (`createItemModels(...)`); default the shared set behind `registerItemModel`. */
138
138
  models?: ItemModelRegistry;
139
+ /** What an item does in the hand (eaten, taken, applied: `goodsItemUse` of game-items-goods); without it the items have only the uses of their liquid. */
140
+ itemUse?: (item: ItemDef) => ModuleItemUse | undefined;
139
141
  }
140
142
  declare const SHOWCASE_STAND_ID = "stand_models";
141
143
  declare const RULER_ID = "ruler_155";
package/dist/testing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { F as FINDS_TABLE_ID, H as HUMAN_HEIGHT, d as HUMAN_ID, g as ItemsAreaState, h as ItemsTestModule, i as ItemsTestModuleOptions, j as RULER_HEIGHT, k as RULER_ID, n as SHOWCASE_STAND_ID, o as ScenarioLike, s as createItemsTestModule } from './testing-CBYX7wTL.js';
1
+ export { F as FINDS_TABLE_ID, H as HUMAN_HEIGHT, d as HUMAN_ID, g as ItemsAreaState, h as ItemsTestModule, i as ItemsTestModuleOptions, j as RULER_HEIGHT, k as RULER_ID, n as SHOWCASE_STAND_ID, o as ScenarioLike, s as createItemsTestModule } from './testing-D2tqWTG4.js';
2
2
  import 'three';
3
3
  import '@adatechnology/game-contracts';
4
4
  import '@adatechnology/game-items';
package/dist/testing.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  RULER_ID,
7
7
  SHOWCASE_STAND_ID,
8
8
  createItemsTestModule
9
- } from "./chunk-S4UUQQOL.js";
9
+ } from "./chunk-64JEKMFT.js";
10
10
  export {
11
11
  FINDS_TABLE_ID,
12
12
  HUMAN_HEIGHT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adatechnology/game-items-three",
3
- "version": "0.10.7",
3
+ "version": "0.11.1",
4
4
  "license": "MIT",
5
5
  "description": "three.js presentation for @adatechnology/game-items: the 24 models of the Itens do Vale Cinzento showcase at real size, simple shapes at real size for every other item, wear (new, used, spoiled) on the materials, merge by material, LOD and the draw budgets of the team.",
6
6
  "keywords": [
@@ -42,12 +42,12 @@
42
42
  "dist"
43
43
  ],
44
44
  "dependencies": {
45
- "@adatechnology/game-contracts": "^0.43.0",
46
- "@adatechnology/game-floorplan-three": "^4.1.2",
47
- "@adatechnology/game-fluids": "^0.6.12",
48
- "@adatechnology/game-interactables": "^0.6.3",
49
- "@adatechnology/game-items": "^0.2.25",
50
- "@adatechnology/game-shapes-three": "^0.4.1"
45
+ "@adatechnology/game-contracts": "^0.44.0",
46
+ "@adatechnology/game-floorplan-three": "^4.1.4",
47
+ "@adatechnology/game-fluids": "^0.6.13",
48
+ "@adatechnology/game-interactables": "^0.6.9",
49
+ "@adatechnology/game-items": "^0.4.0",
50
+ "@adatechnology/game-shapes-three": "^0.4.2"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "three": "^0.160.0"
@@ -60,12 +60,14 @@
60
60
  "tsup": "^8.5.1",
61
61
  "typescript": "^5.7.3",
62
62
  "vitest": "^3.2.4",
63
- "@adatechnology/game-destruction": "^0.30.1",
64
- "@adatechnology/game-destruction-three": "^0.27.1",
65
- "@adatechnology/game-interactables-household": "^0.7.3",
66
- "@adatechnology/game-interactables-three": "^0.3.7",
67
- "@adatechnology/game-items-goods": "^0.4.7",
68
- "@adatechnology/game-test-room": "^0.40.0",
63
+ "@adatechnology/game-destruction": "^0.30.2",
64
+ "@adatechnology/game-destruction-three": "^1.1.0",
65
+ "@adatechnology/game-interactables-household": "^0.7.5",
66
+ "@adatechnology/game-interactables-three": "^0.4.0",
67
+ "@adatechnology/game-items-goods": "^0.6.0",
68
+ "@adatechnology/game-physics": "^0.10.0",
69
+ "@adatechnology/game-physics-jolt": "^0.7.4",
70
+ "@adatechnology/game-test-room": "^1.2.0",
69
71
  "@adatechnology/golden-tool": "^0.0.0"
70
72
  },
71
73
  "scripts": {