@adatechnology/game-weapons-three 0.13.0 → 0.14.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
@@ -74,7 +74,7 @@ import {
74
74
  worldExplosiveItem,
75
75
  worldExplosiveShell,
76
76
  worldExplosiveValve
77
- } from "./chunk-NQELXT56.js";
77
+ } from "./chunk-PRC75VKC.js";
78
78
 
79
79
  // src/projectile-model.ts
80
80
  function projectileModel(THREE, query) {
@@ -1,6 +1,6 @@
1
1
  import { HostTool, HandPose, EffectSink, HostEvent, HandTargets, TestableModule, AreaPlacement, DestructionEvent, Hit, Vec3 as Vec3$1, ModuleControl, ModuleLayer, ModuleMetric, ModuleHost } from '@adatechnology/game-contracts';
2
2
  import { CaseType, CaliberDef, ReloadStageId, WeaponEvent, MountKind, AttachmentDef, FittedAttachment, Arsenal, WeaponDef, ExplosiveDef } from '@adatechnology/game-weapons';
3
- import { SampleDefaults, SfxManifest, SoundBank, SfxManifestSound, AudioEngine } from '@adatechnology/game-audio';
3
+ import { SampleDefaults, SfxManifest, SoundBank, AudioEngine } from '@adatechnology/game-audio';
4
4
  import * as THREE_NS from 'three';
5
5
  import { LightBudget, RenderPools } from '@adatechnology/game-render-three';
6
6
 
@@ -787,7 +787,10 @@ declare const WEIGHT_INTENSITY: Readonly<Record<SoundProfile['weight'], number>>
787
787
  */
788
788
  declare const CUES_IN_SAMPLE: Readonly<Record<string, string>>;
789
789
  /** The numbers of a sound of the manifest: a gunshot, a case landing or a reload step (`armas` only). */
790
- declare function weaponSampleDefaults(sound: SfxManifestSound, overrides?: WeaponSampleOptions['sounds']): SampleDefaults | undefined;
790
+ declare function weaponSampleDefaults(sound: {
791
+ readonly id: string;
792
+ readonly category: string;
793
+ }, overrides?: WeaponSampleOptions['sounds']): SampleDefaults | undefined;
791
794
  /** The bank of the recorded weapon sounds, every url through `url` (or `baseUrl`). Gunshots choke at three voices. */
792
795
  declare function weaponSampleBank(options: WeaponSampleOptions): SoundBank;
793
796
 
@@ -1491,7 +1494,7 @@ interface ExplosivesText {
1491
1494
  push_told: string;
1492
1495
  push_outward: string;
1493
1496
  push_falloff: string;
1494
- push_person: string;
1497
+ push_person_wave: string;
1495
1498
  push_sheltered: string;
1496
1499
  push_heavy: string;
1497
1500
  };
@@ -1599,6 +1602,7 @@ interface ExplosivesBench {
1599
1602
  readonly radius: number;
1600
1603
  readonly cause: string;
1601
1604
  readonly explosive?: string;
1605
+ readonly tnt?: number;
1602
1606
  } | undefined;
1603
1607
  witnesses(): Array<{
1604
1608
  kind: 'person' | 'wall' | 'object';
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, O as MOUNTED_M134_ITEM_ID, a2 as WEAPON_ITEM_PREFIX, a9 as WeaponsTestModuleOptions, ah as createExplosivesTestModule, ak as createWeaponsTestModule, an as explosivesTextOf, aw as weaponsLayout } from './testing-BoxqhX_W.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, O as MOUNTED_M134_ITEM_ID, a2 as WEAPON_ITEM_PREFIX, a9 as WeaponsTestModuleOptions, ah as createExplosivesTestModule, ak as createWeaponsTestModule, an as explosivesTextOf, aw as weaponsLayout } from './testing-DnPjEPC5.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-NQELXT56.js";
12
+ } from "./chunk-PRC75VKC.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.13.0",
3
+ "version": "0.14.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-contracts": "^0.23.0",
48
- "@adatechnology/game-floorplan-three": "^0.9.1",
49
- "@adatechnology/game-audio": "^0.5.0",
50
- "@adatechnology/game-items-three": "^0.7.1",
47
+ "@adatechnology/game-audio": "^0.6.1",
48
+ "@adatechnology/game-contracts": "^0.24.0",
49
+ "@adatechnology/game-floorplan-three": "^0.9.2",
50
+ "@adatechnology/game-items-three": "^0.7.2",
51
51
  "@adatechnology/game-render-three": "^0.1.0",
52
52
  "@adatechnology/game-shapes-three": "^0.3.1",
53
53
  "@adatechnology/game-vfx": "^0.7.0",
54
- "@adatechnology/game-vfx-three": "^0.5.1",
55
- "@adatechnology/game-weapons": "^0.5.9"
54
+ "@adatechnology/game-vfx-three": "^0.5.2",
55
+ "@adatechnology/game-weapons": "^0.6.0"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "three": "^0.160.0"
@@ -65,7 +65,7 @@
65
65
  "tsup": "^8.5.1",
66
66
  "typescript": "^5.7.3",
67
67
  "vitest": "^3.2.4",
68
- "@adatechnology/game-test-room": "^0.22.0",
68
+ "@adatechnology/game-test-room": "^0.25.0",
69
69
  "@adatechnology/golden-tool": "^0.0.0"
70
70
  },
71
71
  "scripts": {