@adatechnology/game-items-three 0.10.6 → 0.11.0
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/{chunk-S4UUQQOL.js → chunk-64JEKMFT.js} +18 -10
- package/dist/chunk-64JEKMFT.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.global.js +416 -105
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{testing-CBYX7wTL.d.ts → testing-D2tqWTG4.d.ts} +4 -2
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +15 -13
- package/dist/chunk-S4UUQQOL.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -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-
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adatechnology/game-items-three",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
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-
|
|
46
|
-
"@adatechnology/game-
|
|
47
|
-
"@adatechnology/game-
|
|
48
|
-
"@adatechnology/game-
|
|
49
|
-
"@adatechnology/game-
|
|
50
|
-
"@adatechnology/game-shapes-three": "^0.4.
|
|
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.3.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.
|
|
64
|
-
"@adatechnology/game-
|
|
65
|
-
"@adatechnology/game-interactables-
|
|
66
|
-
"@adatechnology/game-
|
|
67
|
-
"@adatechnology/game-
|
|
68
|
-
"@adatechnology/game-
|
|
63
|
+
"@adatechnology/game-destruction": "^0.30.2",
|
|
64
|
+
"@adatechnology/game-destruction-three": "^1.1.0",
|
|
65
|
+
"@adatechnology/game-interactables-household": "^0.7.4",
|
|
66
|
+
"@adatechnology/game-interactables-three": "^0.4.0",
|
|
67
|
+
"@adatechnology/game-items-goods": "^0.5.0",
|
|
68
|
+
"@adatechnology/game-physics": "^0.10.0",
|
|
69
|
+
"@adatechnology/game-physics-jolt": "^0.7.4",
|
|
70
|
+
"@adatechnology/game-test-room": "^1.1.0",
|
|
69
71
|
"@adatechnology/golden-tool": "^0.0.0"
|
|
70
72
|
},
|
|
71
73
|
"scripts": {
|