@adatechnology/game-items-three 0.9.1 → 0.10.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/{chunk-35IYUYZP.js → chunk-S4UUQQOL.js} +5 -3
- package/dist/chunk-S4UUQQOL.js.map +1 -0
- package/dist/index.d.ts +14 -1
- package/dist/index.global.js +313 -138
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/testing.js +1 -1
- package/package.json +13 -11
- package/dist/chunk-35IYUYZP.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -65,7 +65,20 @@ import {
|
|
|
65
65
|
turnItem,
|
|
66
66
|
unregisterItemModel,
|
|
67
67
|
wearableMaterials
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-S4UUQQOL.js";
|
|
69
|
+
|
|
70
|
+
// src/contained.ts
|
|
71
|
+
function createContainedItemModel(items, options = {}) {
|
|
72
|
+
const byId = /* @__PURE__ */ new Map();
|
|
73
|
+
for (const item of items) byId.set(item.id, item);
|
|
74
|
+
return (stack, T) => {
|
|
75
|
+
const item = byId.get(stack.type);
|
|
76
|
+
if (!item) return null;
|
|
77
|
+
const model = buildItem(T, item, options);
|
|
78
|
+
model.root.userData.item = { id: item.id, kind: model.kind };
|
|
79
|
+
return model.root;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
69
82
|
|
|
70
83
|
// src/item-models.ts
|
|
71
84
|
var itemModels = { has: hasItemModel, build: buildItem };
|
|
@@ -147,6 +160,7 @@ export {
|
|
|
147
160
|
composeThumbnailScene,
|
|
148
161
|
countDrawCalls,
|
|
149
162
|
countTriangles,
|
|
163
|
+
createContainedItemModel,
|
|
150
164
|
createItemKit,
|
|
151
165
|
createItemModels,
|
|
152
166
|
createItemsTestModule,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/item-models.ts","../src/merge.ts","../src/lod.ts","../src/models/instance.ts"],"sourcesContent":["import { buildItem } from './build-item'\nimport { hasItemModel } from './models/registry'\n\n/** The item models as a source a weapon or an explosive can draw with (`ItemModels` of game-weapons-three): a host lends it as `items`. */\nexport const itemModels = { has: hasItemModel, build: buildItem } as const\n","import { mergeByMaterial } from '@adatechnology/game-shapes-three'\nimport type * as THREE_NS from 'three'\n\nimport type { ItemModel } from './build-item'\n\n/**\n * The same item with its meshes joined by material: one mesh and one draw call per material instead of one per part (the \"one material for all the items\" of the page's\n * budget, as far as the materials of the kit allow). The materials are the same objects, so `setWear` still reaches them. The model's scale stays on the root.\n */\nexport function mergeItem(T: typeof THREE_NS, model: ItemModel): ItemModel {\n model.root.updateMatrixWorld(true)\n const merged = new T.Group()\n merged.name = model.root.name\n merged.scale.copy(model.root.scale)\n merged.userData = { ...model.root.userData }\n // baked into the space of the root, which leaves the root's own scale out of the geometry\n merged.add(...mergeByMaterial(T, model.root, model.root))\n return { ...model, root: merged }\n}\n","import type * as THREE_NS from 'three'\n\nimport { ITEM_BUDGETS, cullDistanceOf } from './budgets'\nimport type { ItemBudgets } from './budgets'\nimport { buildItem } from './build-item'\nimport type { BuildItemOptions, DrawableItem, ItemModel } from './build-item'\nimport { createItemKit } from './kit'\nimport { mergeItem } from './merge'\n\nexport interface ItemLodOptions extends Omit<BuildItemOptions, 'simple' | 'detail' | 'kit'> {\n budgets?: ItemBudgets\n /** Join the meshes of each level by material (default true). */\n merge?: boolean\n /** Distance of the second level in metres; default a third of the distance at which the item disappears. */\n lod1Distance?: number\n}\n\nexport interface ItemLod {\n /** Add this to the scene and call `update(camera)` (or let the renderer do it). */\n readonly root: THREE_NS.LOD\n /** Full detail: the showcase model, or the shape at full segments. */\n readonly near: ItemModel\n /** The simple shape at half the segments. */\n readonly far: ItemModel\n /** Metres from the camera at which the item is no longer drawn. */\n readonly cullDistance: number\n readonly lod1Distance: number\n}\n\n/**\n * Three levels of an item: the model (or the shape) up close, the simple shape at half the segments from `lod1Distance`, and nothing from the distance of its class\n * (a small item goes at 30 m, a large one at 60 m).\n */\nexport function buildItemLod(T: typeof THREE_NS, item: DrawableItem, options: ItemLodOptions = {}): ItemLod {\n const budgets = options.budgets ?? ITEM_BUDGETS\n const cullDistance = cullDistanceOf(item.size, budgets)\n const lod1Distance = options.lod1Distance ?? cullDistance / 3\n const joined = (model: ItemModel): ItemModel => (options.merge === false ? model : mergeItem(T, model))\n const wear = { ...(options.wear === undefined ? {} : { wear: options.wear }), ...(options.models === undefined ? {} : { models: options.models }) }\n const near = joined(buildItem(T, item, { ...wear, kit: createItemKit(T) }))\n const far = joined(buildItem(T, item, { ...wear, simple: true, detail: budgets.lod1Ratio, kit: createItemKit(T) }))\n const root = new T.LOD()\n root.name = item.id\n root.addLevel(near.root, 0)\n root.addLevel(far.root, lod1Distance)\n root.addLevel(new T.Group(), cullDistance)\n root.userData.wear = options.wear ?? 0\n return { root, near, far, cullDistance, lod1Distance }\n}\n","import { applyPatches, mergeById, removeIds } from '@adatechnology/game-contracts'\nimport type { DeepPartial, Thumbnail } from '@adatechnology/game-contracts'\nimport type * as THREE_NS from 'three'\n\nimport { buildItem } from '../build-item'\nimport { buildItemLod } from '../lod'\nimport type { ItemLod, ItemLodOptions } from '../lod'\nimport { itemThumbnail } from '../thumbnails'\nimport type { BuildItemOptions, DrawableItem, ItemModel } from '../build-item'\nimport { registryOver } from './registry'\nimport type { ItemModelBuilder, ItemModelEntry, ItemModelRegistry } from './registry'\nimport { SHIPPED_MODELS } from './shipped'\n\nexport interface ItemModelRecord {\n readonly entry: ItemModelEntry\n readonly builder: ItemModelBuilder\n}\n\nexport interface ItemModelsOptions {\n /** Models added to the shipped ones; one with the id of a shipped model replaces it. */\n readonly packs?: readonly (readonly ItemModelRecord[])[]\n /** Changes to an entry by item id (`scale`, `teamBox`), merged field by field. */\n readonly patch?: Readonly<Record<string, DeepPartial<ItemModelEntry>>>\n /** Item ids whose model is taken out (the item then gets its simple shape). */\n readonly remove?: readonly string[]\n}\n\nexport interface ItemModels extends ItemModelRegistry {\n /** `buildItem` that reads this set of models. */\n build(T: typeof THREE_NS, item: DrawableItem, options?: Omit<BuildItemOptions, 'models'>): ItemModel\n /** `buildItemLod` that reads this set of models. */\n buildLod(T: typeof THREE_NS, item: DrawableItem, options?: Omit<ItemLodOptions, 'models'>): ItemLod\n /** `itemThumbnail` that asks this set whether the item has a model. */\n thumbnail(item: DrawableItem): Thumbnail\n}\n\ntype Keyed = ItemModelRecord & { readonly id: string }\n\n/** A set of item models of its own: the shipped ones plus `packs`, `patch` and `remove`. Nothing is shared with any other set on the page. */\nexport function createItemModels(options: ItemModelsOptions = {}): ItemModels {\n const keyed = (record: ItemModelRecord): Keyed => ({ ...record, id: record.entry.id })\n const records = mergeById(SHIPPED_MODELS.map(keyed), (options.packs ?? []).flat().map(keyed))\n applyPatches(records, Object.fromEntries(Object.entries(options.patch ?? {}).map(([id, entry]) => [id, { entry }])) as Readonly<Record<string, DeepPartial<Keyed>>>)\n removeIds(records, options.remove)\n const registry = registryOver(new Map([...records].map(([id, record]) => [id, record.entry])), new Map([...records].map(([id, record]) => [id, record.builder])))\n const models: ItemModels = {\n ...registry,\n build: (T, item, buildOptions = {}) => buildItem(T, item, { ...buildOptions, models: registry }),\n buildLod: (T, item, lodOptions = {}) => buildItemLod(T, item, { ...lodOptions, models: registry }),\n thumbnail: (item) => itemThumbnail(item, registry),\n }\n return models\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,IAAM,aAAa,EAAE,KAAK,cAAc,OAAO,UAAU;;;ACJhE,SAAS,uBAAuB;AASzB,SAAS,UAAU,GAAoB,OAA6B;AACzE,QAAM,KAAK,kBAAkB,IAAI;AACjC,QAAM,SAAS,IAAI,EAAE,MAAM;AAC3B,SAAO,OAAO,MAAM,KAAK;AACzB,SAAO,MAAM,KAAK,MAAM,KAAK,KAAK;AAClC,SAAO,WAAW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,UAAU,eAAe,IAAI,KAAK,IAAI,QAAQ,SAAS,CAAC,GAAG,KAAK,EAAE,IAAI,KAAK,CAAC;AAC5F,eAAa,SAAS,OAAO,YAAY,OAAO,QAAQ,QAAQ,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAiD;AACnK,YAAU,SAAS,QAAQ,MAAM;AACjC,QAAM,WAAW,aAAa,IAAI,IAAI,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,CAAC,IAAI,MAAM,MAAM,CAAC,IAAI,OAAO,KAAK,CAAC,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,CAAC,IAAI,MAAM,MAAM,CAAC,IAAI,OAAO,OAAO,CAAC,CAAC,CAAC;AAChK,QAAM,SAAqB;AAAA,IACzB,GAAG;AAAA,IACH,OAAO,CAAC,GAAG,MAAM,eAAe,CAAC,MAAM,UAAU,GAAG,MAAM,EAAE,GAAG,cAAc,QAAQ,SAAS,CAAC;AAAA,IAC/F,UAAU,CAAC,GAAG,MAAM,aAAa,CAAC,MAAM,aAAa,GAAG,MAAM,EAAE,GAAG,YAAY,QAAQ,SAAS,CAAC;AAAA,IACjG,WAAW,CAAC,SAAS,cAAc,MAAM,QAAQ;AAAA,EACnD;AACA,SAAO;AACT;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/contained.ts","../src/item-models.ts","../src/merge.ts","../src/lod.ts","../src/models/instance.ts"],"sourcesContent":["import type * as THREE_NS from 'three'\n\nimport { buildItem } from './build-item'\nimport type { BuildItemOptions, DrawableItem } from './build-item'\n\n/** A stack held in a container (`ItemStack` of game-interactables): the item id and its free data. */\nexport interface ContainedStack {\n readonly type: string\n}\n\n/** What `createContainedItemModel` returns: the real model of a stack drawn with the caller's `THREE`, or null for an id the catalogue does not have. */\nexport type ContainedItemModel = (stack: ContainedStack, T: typeof THREE_NS) => THREE_NS.Object3D | null\n\n/**\n * The model of the items inside furniture, for `createContentsView` of game-interactables-three and `interactives.itemModel` of game-floorplan-three: each\n * stack is drawn by `buildItem` from the catalogue (the team's model where there is one, the item's own shape otherwise), never a stand-in. Every item gets its\n * own materials, so the view can discard it alone when it is taken. `root.userData.item` says what was drawn (`{ id, kind }`).\n */\nexport function createContainedItemModel(items: Iterable<DrawableItem>, options: Omit<BuildItemOptions, 'kit'> = {}): ContainedItemModel {\n const byId = new Map<string, DrawableItem>()\n for (const item of items) byId.set(item.id, item)\n return (stack, T) => {\n const item = byId.get(stack.type)\n if (!item) return null\n const model = buildItem(T, item, options)\n model.root.userData.item = { id: item.id, kind: model.kind }\n return model.root\n }\n}\n","import { buildItem } from './build-item'\nimport { hasItemModel } from './models/registry'\n\n/** The item models as a source a weapon or an explosive can draw with (`ItemModels` of game-weapons-three): a host lends it as `items`. */\nexport const itemModels = { has: hasItemModel, build: buildItem } as const\n","import { mergeByMaterial } from '@adatechnology/game-shapes-three'\nimport type * as THREE_NS from 'three'\n\nimport type { ItemModel } from './build-item'\n\n/**\n * The same item with its meshes joined by material: one mesh and one draw call per material instead of one per part (the \"one material for all the items\" of the page's\n * budget, as far as the materials of the kit allow). The materials are the same objects, so `setWear` still reaches them. The model's scale stays on the root.\n */\nexport function mergeItem(T: typeof THREE_NS, model: ItemModel): ItemModel {\n model.root.updateMatrixWorld(true)\n const merged = new T.Group()\n merged.name = model.root.name\n merged.scale.copy(model.root.scale)\n merged.userData = { ...model.root.userData }\n // baked into the space of the root, which leaves the root's own scale out of the geometry\n merged.add(...mergeByMaterial(T, model.root, model.root))\n return { ...model, root: merged }\n}\n","import type * as THREE_NS from 'three'\n\nimport { ITEM_BUDGETS, cullDistanceOf } from './budgets'\nimport type { ItemBudgets } from './budgets'\nimport { buildItem } from './build-item'\nimport type { BuildItemOptions, DrawableItem, ItemModel } from './build-item'\nimport { createItemKit } from './kit'\nimport { mergeItem } from './merge'\n\nexport interface ItemLodOptions extends Omit<BuildItemOptions, 'simple' | 'detail' | 'kit'> {\n budgets?: ItemBudgets\n /** Join the meshes of each level by material (default true). */\n merge?: boolean\n /** Distance of the second level in metres; default a third of the distance at which the item disappears. */\n lod1Distance?: number\n}\n\nexport interface ItemLod {\n /** Add this to the scene and call `update(camera)` (or let the renderer do it). */\n readonly root: THREE_NS.LOD\n /** Full detail: the showcase model, or the shape at full segments. */\n readonly near: ItemModel\n /** The simple shape at half the segments. */\n readonly far: ItemModel\n /** Metres from the camera at which the item is no longer drawn. */\n readonly cullDistance: number\n readonly lod1Distance: number\n}\n\n/**\n * Three levels of an item: the model (or the shape) up close, the simple shape at half the segments from `lod1Distance`, and nothing from the distance of its class\n * (a small item goes at 30 m, a large one at 60 m).\n */\nexport function buildItemLod(T: typeof THREE_NS, item: DrawableItem, options: ItemLodOptions = {}): ItemLod {\n const budgets = options.budgets ?? ITEM_BUDGETS\n const cullDistance = cullDistanceOf(item.size, budgets)\n const lod1Distance = options.lod1Distance ?? cullDistance / 3\n const joined = (model: ItemModel): ItemModel => (options.merge === false ? model : mergeItem(T, model))\n const wear = { ...(options.wear === undefined ? {} : { wear: options.wear }), ...(options.models === undefined ? {} : { models: options.models }) }\n const near = joined(buildItem(T, item, { ...wear, kit: createItemKit(T) }))\n const far = joined(buildItem(T, item, { ...wear, simple: true, detail: budgets.lod1Ratio, kit: createItemKit(T) }))\n const root = new T.LOD()\n root.name = item.id\n root.addLevel(near.root, 0)\n root.addLevel(far.root, lod1Distance)\n root.addLevel(new T.Group(), cullDistance)\n root.userData.wear = options.wear ?? 0\n return { root, near, far, cullDistance, lod1Distance }\n}\n","import { applyPatches, mergeById, removeIds } from '@adatechnology/game-contracts'\nimport type { DeepPartial, Thumbnail } from '@adatechnology/game-contracts'\nimport type * as THREE_NS from 'three'\n\nimport { buildItem } from '../build-item'\nimport { buildItemLod } from '../lod'\nimport type { ItemLod, ItemLodOptions } from '../lod'\nimport { itemThumbnail } from '../thumbnails'\nimport type { BuildItemOptions, DrawableItem, ItemModel } from '../build-item'\nimport { registryOver } from './registry'\nimport type { ItemModelBuilder, ItemModelEntry, ItemModelRegistry } from './registry'\nimport { SHIPPED_MODELS } from './shipped'\n\nexport interface ItemModelRecord {\n readonly entry: ItemModelEntry\n readonly builder: ItemModelBuilder\n}\n\nexport interface ItemModelsOptions {\n /** Models added to the shipped ones; one with the id of a shipped model replaces it. */\n readonly packs?: readonly (readonly ItemModelRecord[])[]\n /** Changes to an entry by item id (`scale`, `teamBox`), merged field by field. */\n readonly patch?: Readonly<Record<string, DeepPartial<ItemModelEntry>>>\n /** Item ids whose model is taken out (the item then gets its simple shape). */\n readonly remove?: readonly string[]\n}\n\nexport interface ItemModels extends ItemModelRegistry {\n /** `buildItem` that reads this set of models. */\n build(T: typeof THREE_NS, item: DrawableItem, options?: Omit<BuildItemOptions, 'models'>): ItemModel\n /** `buildItemLod` that reads this set of models. */\n buildLod(T: typeof THREE_NS, item: DrawableItem, options?: Omit<ItemLodOptions, 'models'>): ItemLod\n /** `itemThumbnail` that asks this set whether the item has a model. */\n thumbnail(item: DrawableItem): Thumbnail\n}\n\ntype Keyed = ItemModelRecord & { readonly id: string }\n\n/** A set of item models of its own: the shipped ones plus `packs`, `patch` and `remove`. Nothing is shared with any other set on the page. */\nexport function createItemModels(options: ItemModelsOptions = {}): ItemModels {\n const keyed = (record: ItemModelRecord): Keyed => ({ ...record, id: record.entry.id })\n const records = mergeById(SHIPPED_MODELS.map(keyed), (options.packs ?? []).flat().map(keyed))\n applyPatches(records, Object.fromEntries(Object.entries(options.patch ?? {}).map(([id, entry]) => [id, { entry }])) as Readonly<Record<string, DeepPartial<Keyed>>>)\n removeIds(records, options.remove)\n const registry = registryOver(new Map([...records].map(([id, record]) => [id, record.entry])), new Map([...records].map(([id, record]) => [id, record.builder])))\n const models: ItemModels = {\n ...registry,\n build: (T, item, buildOptions = {}) => buildItem(T, item, { ...buildOptions, models: registry }),\n buildLod: (T, item, lodOptions = {}) => buildItemLod(T, item, { ...lodOptions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,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,CAAC,IAAI,MAAM,MAAM,CAAC,IAAI,OAAO,OAAO,CAAC,CAAC,CAAC;AAChK,QAAM,SAAqB;AAAA,IACzB,GAAG;AAAA,IACH,OAAO,CAAC,GAAG,MAAM,eAAe,CAAC,MAAM,UAAU,GAAG,MAAM,EAAE,GAAG,cAAc,QAAQ,SAAS,CAAC;AAAA,IAC/F,UAAU,CAAC,GAAG,MAAM,aAAa,CAAC,MAAM,aAAa,GAAG,MAAM,EAAE,GAAG,YAAY,QAAQ,SAAS,CAAC;AAAA,IACjG,WAAW,CAAC,SAAS,cAAc,MAAM,QAAQ;AAAA,EACnD;AACA,SAAO;AACT;","names":[]}
|
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.10.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,11 +42,11 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@adatechnology/game-contracts": "^0.
|
|
46
|
-
"@adatechnology/game-
|
|
47
|
-
"@adatechnology/game-
|
|
48
|
-
"@adatechnology/game-
|
|
49
|
-
"@adatechnology/game-items": "^0.2.
|
|
45
|
+
"@adatechnology/game-contracts": "^0.38.0",
|
|
46
|
+
"@adatechnology/game-floorplan-three": "^3.0.0",
|
|
47
|
+
"@adatechnology/game-fluids": "^0.6.7",
|
|
48
|
+
"@adatechnology/game-interactables": "^0.5.0",
|
|
49
|
+
"@adatechnology/game-items": "^0.2.19",
|
|
50
50
|
"@adatechnology/game-shapes-three": "^0.4.1"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
@@ -60,11 +60,13 @@
|
|
|
60
60
|
"tsup": "^8.5.1",
|
|
61
61
|
"typescript": "^5.7.3",
|
|
62
62
|
"vitest": "^3.2.4",
|
|
63
|
-
"@adatechnology/game-
|
|
64
|
-
"@adatechnology/game-
|
|
65
|
-
"@adatechnology/
|
|
66
|
-
"@adatechnology/game-
|
|
67
|
-
"@adatechnology/game-
|
|
63
|
+
"@adatechnology/game-destruction": "^0.29.2",
|
|
64
|
+
"@adatechnology/game-destruction-three": "^0.26.2",
|
|
65
|
+
"@adatechnology/game-interactables-household": "^0.7.2",
|
|
66
|
+
"@adatechnology/game-interactables-three": "^0.3.1",
|
|
67
|
+
"@adatechnology/game-items-goods": "^0.4.2",
|
|
68
|
+
"@adatechnology/game-test-room": "^0.38.0",
|
|
69
|
+
"@adatechnology/golden-tool": "^0.0.0"
|
|
68
70
|
},
|
|
69
71
|
"scripts": {
|
|
70
72
|
"build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsup",
|