@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/assets/weapon-svg/generated/ak_47.svg +1 -1
- package/assets/weapon-svg/generated/ak_74.svg +1 -1
- package/assets/weapon-svg/generated/akm.svg +1 -1
- package/assets/weapon-svg/generated/aks_74u.svg +1 -1
- package/assets/weapon-svg/generated/desert_eagle_mark_xix.svg +1 -1
- package/assets/weapon-svg/generated/hunting_rifle_30_06.svg +1 -1
- package/assets/weapon-svg/generated/m24_sws.svg +1 -1
- package/assets/weapon-svg/generated/remington_700.svg +1 -1
- package/assets/weapon-svg/generated/remington_700_300wm.svg +1 -1
- package/assets/weapon-svg/generated/rifle_7_62x39.svg +1 -1
- package/assets/weapon-svg/generated/rpk.svg +1 -1
- package/assets/weapon-svg/generated/steyr_ssg_69.svg +1 -1
- package/assets/weapon-svg/generated/svd_dragunov.svg +1 -1
- package/dist/{chunk-4HWHC6US.js → chunk-SWR4BJMK.js} +423 -82
- package/dist/chunk-SWR4BJMK.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.global.js +992 -581
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{testing-I8H8oNSD.d.ts → testing-CyfMbH0P.d.ts} +9 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +9 -9
- package/dist/chunk-4HWHC6US.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -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-
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adatechnology/game-weapons-three",
|
|
3
|
-
"version": "0.
|
|
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.
|
|
48
|
-
"@adatechnology/game-contracts": "^0.
|
|
49
|
-
"@adatechnology/game-floorplan-three": "^0.11.
|
|
50
|
-
"@adatechnology/game-items-three": "^0.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.
|
|
55
|
-
"@adatechnology/game-weapons": "^0.9.
|
|
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/
|
|
69
|
-
"@adatechnology/
|
|
68
|
+
"@adatechnology/golden-tool": "^0.0.0",
|
|
69
|
+
"@adatechnology/game-test-room": "^0.30.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "tsup",
|