@adatechnology/game-weapons-three 0.18.1 → 0.19.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/index.js CHANGED
@@ -86,7 +86,7 @@ import {
86
86
  worldExplosiveItem,
87
87
  worldExplosiveShell,
88
88
  worldExplosiveValve
89
- } from "./chunk-4HWHC6US.js";
89
+ } from "./chunk-SWR4BJMK.js";
90
90
 
91
91
  // src/projectile-model.ts
92
92
  import { markKitOrigin } from "@adatechnology/game-contracts";
@@ -943,6 +943,8 @@ interface ModelOptions {
943
943
  design?: string;
944
944
  /** Metal and furniture finish. */
945
945
  steel?: number;
946
+ /** Polished steel, as a chrome-finished pistol. */
947
+ chrome?: number;
946
948
  stain?: number;
947
949
  wood?: number;
948
950
  olive?: number;
@@ -978,6 +980,10 @@ interface ModelOptions {
978
980
  g3?: number;
979
981
  /** The Heckler & Koch G36 family: its polymer receiver, skeletal stock (`stock: 'g36'`), handguard, and on top the carry handle with optics (`carry`) or the long rail. */
980
982
  g36?: number;
983
+ /** The SVD Dragunov's chunky slotted wooden handguard (with `stock: 'svd'`, its thumbhole stock). */
984
+ svd?: number;
985
+ /** The Kalashnikov's stamped receiver (dust cover, rear sight block, selector lever) and, with `mag: 'curved'`, its smooth banana magazine. */
986
+ kalashnikov?: number;
981
987
  charge?: number;
982
988
  rail?: number;
983
989
  jacket?: number;
@@ -1113,6 +1119,7 @@ declare const createMaterials: (THREE: Three) => {
1113
1119
  metal: THREE_NS.MeshStandardMaterial;
1114
1120
  steel: THREE_NS.MeshStandardMaterial;
1115
1121
  steelL: THREE_NS.MeshStandardMaterial;
1122
+ chrome: THREE_NS.MeshStandardMaterial;
1116
1123
  dark: THREE_NS.MeshStandardMaterial;
1117
1124
  poly: THREE_NS.MeshStandardMaterial;
1118
1125
  olive: THREE_NS.MeshStandardMaterial;
@@ -1451,6 +1458,8 @@ interface WeaponsTestModuleOptions {
1451
1458
  items?: ItemModels;
1452
1459
  /** The weapon item model overrides to draw with (`createWeaponProps(...)`); default the shared set behind `registerWeaponItemModel`. */
1453
1460
  props?: WeaponProps;
1461
+ /** Shows the photo of the real weapon on the showcase, small in a corner of the screen, opening large on a click (default false: only the weapons room page turns it on). */
1462
+ referencePhotos?: boolean;
1454
1463
  }
1455
1464
  /** Prefix of the item ids of the weapon props (`weapon_beretta_92fs`). */
1456
1465
  declare const WEAPON_ITEM_PREFIX = "weapon_";
package/dist/testing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { i as COUNTER_ITEM_ID, m as DEFAULT_EXPLOSIVES_SCENE, E as EXPLOSIVES_AREA_ID, o as EXPLOSIVES_TEXT, q as ExplosivesRoom, r as ExplosivesScene, s as ExplosivesTestModuleOptions, t as ExplosivesText, Q as MOUNTED_M134_ITEM_ID, a2 as WEAPON_ITEM_PREFIX, aa as WeaponsTestModuleOptions, aj as createExplosivesTestModule, am as createWeaponsTestModule, ap as explosivesTextOf, az as weaponsLayout } from './testing-I8H8oNSD.js';
1
+ export { i as COUNTER_ITEM_ID, m as DEFAULT_EXPLOSIVES_SCENE, E as EXPLOSIVES_AREA_ID, o as EXPLOSIVES_TEXT, q as ExplosivesRoom, r as ExplosivesScene, s as ExplosivesTestModuleOptions, t as ExplosivesText, Q as MOUNTED_M134_ITEM_ID, a2 as WEAPON_ITEM_PREFIX, aa as WeaponsTestModuleOptions, aj as createExplosivesTestModule, am as createWeaponsTestModule, ap as explosivesTextOf, az as weaponsLayout } from './testing-CyfMbH0P.js';
2
2
  import '@adatechnology/game-contracts';
3
3
  import '@adatechnology/game-weapons';
4
4
  import '@adatechnology/game-audio';
package/dist/testing.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  createWeaponsTestModule,
10
10
  explosivesTextOf,
11
11
  weaponsLayout
12
- } from "./chunk-4HWHC6US.js";
12
+ } from "./chunk-SWR4BJMK.js";
13
13
  export {
14
14
  COUNTER_ITEM_ID,
15
15
  DEFAULT_EXPLOSIVES_SCENE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adatechnology/game-weapons-three",
3
- "version": "0.18.1",
3
+ "version": "0.19.0",
4
4
  "license": "MIT AND CC-BY-SA-4.0 AND CC-BY-SA-3.0 AND CC-BY-3.0 AND CC0-1.0 AND LicenseRef-Public-Domain",
5
5
  "description": "three.js presentation for @adatechnology/game-weapons: the real models of the Galeria 3D do Arsenal (78 weapons, a cartridge and a case per calibre), the weapon in the hands playing the tool-animation clips (fire, burst, cycle, jam, clear, safety and the seven reloads), ejected casings and dropped magazines, worn-metal conditions, synthesized sounds, and the weapons test area (counters with every weapon) as a TestableModule.",
6
6
  "keywords": [
@@ -44,15 +44,15 @@
44
44
  "assets"
45
45
  ],
46
46
  "dependencies": {
47
- "@adatechnology/game-audio": "^0.9.3",
48
- "@adatechnology/game-contracts": "^0.29.0",
49
- "@adatechnology/game-floorplan-three": "^0.11.0",
50
- "@adatechnology/game-items-three": "^0.7.7",
47
+ "@adatechnology/game-audio": "^0.9.4",
48
+ "@adatechnology/game-contracts": "^0.30.0",
49
+ "@adatechnology/game-floorplan-three": "^0.11.1",
50
+ "@adatechnology/game-items-three": "^0.7.8",
51
51
  "@adatechnology/game-render-three": "^0.2.0",
52
52
  "@adatechnology/game-shapes-three": "^0.3.1",
53
53
  "@adatechnology/game-vfx": "^0.10.1",
54
- "@adatechnology/game-vfx-three": "^0.7.5",
55
- "@adatechnology/game-weapons": "^0.9.1"
54
+ "@adatechnology/game-vfx-three": "^0.7.6",
55
+ "@adatechnology/game-weapons": "^0.9.2"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "three": "^0.160.0"
@@ -65,8 +65,8 @@
65
65
  "tsup": "^8.5.1",
66
66
  "typescript": "^5.7.3",
67
67
  "vitest": "^3.2.4",
68
- "@adatechnology/game-test-room": "^0.29.1",
69
- "@adatechnology/golden-tool": "^0.0.0"
68
+ "@adatechnology/golden-tool": "^0.0.0",
69
+ "@adatechnology/game-test-room": "^0.30.0"
70
70
  },
71
71
  "scripts": {
72
72
  "build": "tsup",