@adatechnology/game-items-three 0.11.8 → 0.12.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-64JEKMFT.js → chunk-DBIE2ZMX.js} +14 -4
- package/dist/chunk-DBIE2ZMX.js.map +1 -0
- package/dist/index.d.ts +17 -2
- package/dist/index.global.js +1536 -962
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{testing-D2tqWTG4.d.ts → testing-Y05TqYH8.d.ts} +2 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +16 -16
- package/dist/chunk-64JEKMFT.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as Vec3Tuple, I as ItemKit, a as ItemModelRegistry, b as ItemModelEntry, c as ItemModelBuilder } from './testing-
|
|
2
|
-
export { F as FINDS_TABLE_ID, H as HUMAN_HEIGHT, d as HUMAN_ID, e as ITEM_PREFIX, f as ItemMaterialData, g as ItemsAreaState, h as ItemsTestModule, i as ItemsTestModuleOptions, L as LayoutItem, R as ROW_LIMIT, j as RULER_HEIGHT, k as RULER_ID, S as SHELF_HEIGHT, l as SHELF_PREFIX, m as SHOWCASE_PREFIX, n as SHOWCASE_STAND_ID, o as ScenarioLike, p as ShelfPlan, W as WEAR_TAGS, q as WearTag, r as createItemKit, s as createItemsTestModule, t as defaultItemModels, u as hasItemModel, v as itemModelBuilder, w as itemModelEntry, x as listItemModels, y as registerItemModel, z as shelvesLayout, A as unregisterItemModel } from './testing-
|
|
1
|
+
import { V as Vec3Tuple, I as ItemKit, a as ItemModelRegistry, b as ItemModelEntry, c as ItemModelBuilder } from './testing-Y05TqYH8.js';
|
|
2
|
+
export { F as FINDS_TABLE_ID, H as HUMAN_HEIGHT, d as HUMAN_ID, e as ITEM_PREFIX, f as ItemMaterialData, g as ItemsAreaState, h as ItemsTestModule, i as ItemsTestModuleOptions, L as LayoutItem, R as ROW_LIMIT, j as RULER_HEIGHT, k as RULER_ID, S as SHELF_HEIGHT, l as SHELF_PREFIX, m as SHOWCASE_PREFIX, n as SHOWCASE_STAND_ID, o as ScenarioLike, p as ShelfPlan, W as WEAR_TAGS, q as WearTag, r as createItemKit, s as createItemsTestModule, t as defaultItemModels, u as hasItemModel, v as itemModelBuilder, w as itemModelEntry, x as listItemModels, y as registerItemModel, z as shelvesLayout, A as unregisterItemModel } from './testing-Y05TqYH8.js';
|
|
3
3
|
import * as THREE_NS from 'three';
|
|
4
4
|
import { ContainerSpec, DestructibleSpec, Thumbnail, DeepPartial } from '@adatechnology/game-contracts';
|
|
5
5
|
import '@adatechnology/game-items';
|
|
@@ -71,6 +71,12 @@ interface DrawableItem extends ShapeSubject {
|
|
|
71
71
|
powder?: {
|
|
72
72
|
color: number;
|
|
73
73
|
};
|
|
74
|
+
/** The parts the catalogue declares (`{ id, material, thickness? }`): with `destructible`, an item of one part is all of its material (`tagForDestruction`). */
|
|
75
|
+
parts?: readonly {
|
|
76
|
+
readonly id: string;
|
|
77
|
+
readonly material: string;
|
|
78
|
+
readonly thickness?: number;
|
|
79
|
+
}[];
|
|
74
80
|
}
|
|
75
81
|
interface BuildItemOptions {
|
|
76
82
|
/** Wear of the materials, 0 new (default), 1 used, 2 spoiled. */
|
|
@@ -206,6 +212,15 @@ interface DestructionTagOptions {
|
|
|
206
212
|
};
|
|
207
213
|
/** three.js, for the shapes three only makes from scratch (a cylinder with rings on its ends: `tessellate.cylinder.capRings`). */
|
|
208
214
|
readonly three?: typeof THREE_NS;
|
|
215
|
+
/**
|
|
216
|
+
* The parts the item's data declares (`{ id, material, thickness? }` of the catalogue): an item of one part (`body`) is all of that material (a wine glass is glass, a
|
|
217
|
+
* detergent bottle plastic, a sponge foam), whatever tag the model or the simple shape was painted with. The data is the item's truth; the paint is only its look.
|
|
218
|
+
*/
|
|
219
|
+
readonly parts?: readonly {
|
|
220
|
+
readonly id: string;
|
|
221
|
+
readonly material: string;
|
|
222
|
+
readonly thickness?: number;
|
|
223
|
+
}[];
|
|
209
224
|
}
|
|
210
225
|
/**
|
|
211
226
|
* Writes the `userData` that `specFromObject3D` reads onto the meshes of a drawn item: the destruction material of each mesh from its kit material tag,
|