@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/{chunk-NQELXT56.js → chunk-PRC75VKC.js} +17 -8
- package/dist/chunk-PRC75VKC.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.global.js +144 -69
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{testing-BoxqhX_W.d.ts → testing-DnPjEPC5.d.ts} +7 -3
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +8 -8
- package/dist/chunk-NQELXT56.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -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,
|
|
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:
|
|
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
|
-
|
|
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-
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adatechnology/game-weapons-three",
|
|
3
|
-
"version": "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-
|
|
48
|
-
"@adatechnology/game-
|
|
49
|
-
"@adatechnology/game-
|
|
50
|
-
"@adatechnology/game-items-three": "^0.7.
|
|
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.
|
|
55
|
-
"@adatechnology/game-weapons": "^0.
|
|
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.
|
|
68
|
+
"@adatechnology/game-test-room": "^0.25.0",
|
|
69
69
|
"@adatechnology/golden-tool": "^0.0.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|