@adatechnology/game-weapons-three 0.4.0 → 0.5.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/CREDITS.md +1 -1
- package/assets/weapon-svg/credits.html +1 -1
- package/assets/weapon-svg/generated/cast_iron_skillet.svg +1 -0
- package/assets/weapon-svg/generated/chainsaw.svg +1 -0
- package/assets/weapon-svg/generated/hatchet.svg +1 -0
- package/assets/weapon-svg/generated/improvised_spear.svg +1 -0
- package/assets/weapon-svg/generated/iron_pipe.svg +1 -0
- package/assets/weapon-svg/generated/meat_cleaver.svg +1 -0
- package/assets/weapon-svg/generated/nail_bat.svg +1 -0
- package/assets/weapon-svg/generated/pickaxe.svg +1 -0
- package/assets/weapon-svg/generated/police_baton.svg +1 -0
- package/assets/weapon-svg/generated/recurve_bow.svg +1 -0
- package/assets/weapon-svg/generated/sickle.svg +1 -0
- package/assets/weapon-svg/generated/tactical_knife.svg +1 -0
- package/assets/weapon-svg/manifest.json +48 -0
- package/dist/index.d.ts +23 -2
- package/dist/index.global.js +619 -259
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +100 -51
- package/dist/index.js.map +1 -1
- package/package.json +7 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Créditos das miniaturas das armas
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
142 miniaturas são geradas a partir do modelo 3D do próprio kit (licença MIT do repositório).
|
|
4
4
|
18 vêm do Wikimedia Commons e mantêm a licença do autor (veja `LICENSE-NOTE.md`).
|
|
5
5
|
|
|
6
6
|
| Arma | Autor | Licença | Página do arquivo | Arquivo original | Modificações |
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<h1>Créditos das miniaturas das armas</h1>
|
|
11
|
-
<p>
|
|
11
|
+
<p>142 miniaturas são geradas a partir do modelo 3D do próprio kit (licença MIT). 18 vêm do Wikimedia Commons e mantêm a licença do autor: veja <a href="LICENSE-NOTE.md">LICENSE-NOTE.md</a>.</p>
|
|
12
12
|
<table>
|
|
13
13
|
<thead><tr><th>Arma</th><th>Autor</th><th>Licença</th><th>Página do arquivo</th><th>Modificações</th></tr></thead>
|
|
14
14
|
<tbody>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" fill="currentColor" fill-rule="evenodd"><path fill-opacity=".6" d="M590.5 12 678.5 12 678.5 188 590.5 188 590.5 122 121.5 122 121.5 78 590.5 78Z"/><path d="M121.5 78 590.5 78 590.5 122 121.5 122Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" fill="currentColor" fill-rule="evenodd"><path fill-opacity=".6" d="M186 66.5 788 66.5 788 133.5 186 133.5 186 120 12 120 12 80 186 80Z"/><path d="M12 80 186 80 186 120 12 120Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" fill="currentColor" fill-rule="evenodd"><path fill-opacity=".6" d="M186 66.5 788 66.5 788 133.5 186 133.5 186 120 12 120 12 80 186 80Z"/><path d="M12 80 186 80 186 120 12 120Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" fill="currentColor" fill-rule="evenodd"><path fill-opacity=".6" d="M186 66.5 788 66.5 788 133.5 186 133.5 186 120 12 120 12 80 186 80Z"/><path d="M12 80 186 80 186 120 12 120Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" fill="currentColor" fill-rule="evenodd"><path fill-opacity=".6" d="M590.5 12 678.5 12 678.5 188 590.5 188 590.5 122 121.5 122 121.5 78 590.5 78Z"/><path d="M121.5 78 590.5 78 590.5 122 121.5 122Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" fill="currentColor" fill-rule="evenodd"><path fill-opacity=".6" d="M186 66.5 788 66.5 788 133.5 186 133.5 186 120 12 120 12 80 186 80Z"/><path d="M12 80 186 80 186 120 12 120Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" fill="currentColor" fill-rule="evenodd"><path fill-opacity=".6" d="M590.5 12 678.5 12 678.5 188 590.5 188 590.5 122 121.5 122 121.5 78 590.5 78Z"/><path d="M121.5 78 590.5 78 590.5 122 121.5 122Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" fill="currentColor" fill-rule="evenodd"><path fill-opacity=".6" d="M186 66.5 788 66.5 788 133.5 186 133.5 186 120 12 120 12 80 186 80Z"/><path d="M12 80 186 80 186 120 12 120Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" fill="currentColor" fill-rule="evenodd"><path fill-opacity=".6" d="M590.5 12 678.5 12 678.5 188 590.5 188 590.5 122 121.5 122 121.5 78 590.5 78Z"/><path d="M121.5 78 590.5 78 590.5 122 121.5 122Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" fill="currentColor" fill-rule="evenodd"><path fill-opacity=".6" d="M20 12 780 12 780 188 20 188Z"/><path d="M20 12 780 12 780 188 20 188Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" fill="currentColor" fill-rule="evenodd"><path fill-opacity=".6" d="M186 66.5 788 66.5 788 133.5 186 133.5 186 120 12 120 12 80 186 80Z"/><path d="M12 80 186 80 186 120 12 120Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200" fill="currentColor" fill-rule="evenodd"><path fill-opacity=".6" d="M186 66.5 788 66.5 788 133.5 186 133.5 186 120 12 120 12 80 186 80Z"/><path d="M12 80 186 80 186 120 12 120Z"/></svg>
|
|
@@ -109,6 +109,10 @@
|
|
|
109
109
|
"source": "generated",
|
|
110
110
|
"file": "generated/carl_gustaf_m4.svg"
|
|
111
111
|
},
|
|
112
|
+
"cast_iron_skillet": {
|
|
113
|
+
"source": "generated",
|
|
114
|
+
"file": "generated/cast_iron_skillet.svg"
|
|
115
|
+
},
|
|
112
116
|
"cbc_122": {
|
|
113
117
|
"source": "generated",
|
|
114
118
|
"file": "generated/cbc_122.svg"
|
|
@@ -121,6 +125,10 @@
|
|
|
121
125
|
"source": "generated",
|
|
122
126
|
"file": "generated/cbc_pump_military_3_0.svg"
|
|
123
127
|
},
|
|
128
|
+
"chainsaw": {
|
|
129
|
+
"source": "generated",
|
|
130
|
+
"file": "generated/chainsaw.svg"
|
|
131
|
+
},
|
|
124
132
|
"cheytac_m200": {
|
|
125
133
|
"source": "generated",
|
|
126
134
|
"file": "generated/cheytac_m200.svg"
|
|
@@ -277,6 +285,10 @@
|
|
|
277
285
|
"source": "generated",
|
|
278
286
|
"file": "generated/hammer.svg"
|
|
279
287
|
},
|
|
288
|
+
"hatchet": {
|
|
289
|
+
"source": "generated",
|
|
290
|
+
"file": "generated/hatchet.svg"
|
|
291
|
+
},
|
|
280
292
|
"hk416": {
|
|
281
293
|
"source": "generated",
|
|
282
294
|
"file": "generated/hk416.svg"
|
|
@@ -345,6 +357,14 @@
|
|
|
345
357
|
"source": "generated",
|
|
346
358
|
"file": "generated/improvised_flamethrower.svg"
|
|
347
359
|
},
|
|
360
|
+
"improvised_spear": {
|
|
361
|
+
"source": "generated",
|
|
362
|
+
"file": "generated/improvised_spear.svg"
|
|
363
|
+
},
|
|
364
|
+
"iron_pipe": {
|
|
365
|
+
"source": "generated",
|
|
366
|
+
"file": "generated/iron_pipe.svg"
|
|
367
|
+
},
|
|
348
368
|
"kel_tec_ksg": {
|
|
349
369
|
"source": "generated",
|
|
350
370
|
"file": "generated/kel_tec_ksg.svg"
|
|
@@ -413,6 +433,10 @@
|
|
|
413
433
|
"source": "generated",
|
|
414
434
|
"file": "generated/makarov_pm.svg"
|
|
415
435
|
},
|
|
436
|
+
"meat_cleaver": {
|
|
437
|
+
"source": "generated",
|
|
438
|
+
"file": "generated/meat_cleaver.svg"
|
|
439
|
+
},
|
|
416
440
|
"mg3": {
|
|
417
441
|
"source": "generated",
|
|
418
442
|
"file": "generated/mg3.svg"
|
|
@@ -437,6 +461,14 @@
|
|
|
437
461
|
"source": "generated",
|
|
438
462
|
"file": "generated/mossberg_500_cruiser.svg"
|
|
439
463
|
},
|
|
464
|
+
"nail_bat": {
|
|
465
|
+
"source": "generated",
|
|
466
|
+
"file": "generated/nail_bat.svg"
|
|
467
|
+
},
|
|
468
|
+
"pickaxe": {
|
|
469
|
+
"source": "generated",
|
|
470
|
+
"file": "generated/pickaxe.svg"
|
|
471
|
+
},
|
|
440
472
|
"pipe_bomb": {
|
|
441
473
|
"source": "generated",
|
|
442
474
|
"file": "generated/pipe_bomb.svg"
|
|
@@ -457,6 +489,10 @@
|
|
|
457
489
|
"source": "generated",
|
|
458
490
|
"file": "generated/pkm.svg"
|
|
459
491
|
},
|
|
492
|
+
"police_baton": {
|
|
493
|
+
"source": "generated",
|
|
494
|
+
"file": "generated/police_baton.svg"
|
|
495
|
+
},
|
|
460
496
|
"pp19_bizon": {
|
|
461
497
|
"source": "generated",
|
|
462
498
|
"file": "generated/pp19_bizon.svg"
|
|
@@ -469,6 +505,10 @@
|
|
|
469
505
|
"source": "generated",
|
|
470
506
|
"file": "generated/pry_bar.svg"
|
|
471
507
|
},
|
|
508
|
+
"recurve_bow": {
|
|
509
|
+
"source": "generated",
|
|
510
|
+
"file": "generated/recurve_bow.svg"
|
|
511
|
+
},
|
|
472
512
|
"remington_700": {
|
|
473
513
|
"source": "generated",
|
|
474
514
|
"file": "generated/remington_700.svg"
|
|
@@ -545,6 +585,10 @@
|
|
|
545
585
|
"source": "generated",
|
|
546
586
|
"file": "generated/shotgun_semi_12.svg"
|
|
547
587
|
},
|
|
588
|
+
"sickle": {
|
|
589
|
+
"source": "generated",
|
|
590
|
+
"file": "generated/sickle.svg"
|
|
591
|
+
},
|
|
548
592
|
"sig_mpx": {
|
|
549
593
|
"source": "generated",
|
|
550
594
|
"file": "generated/sig_mpx.svg"
|
|
@@ -597,6 +641,10 @@
|
|
|
597
641
|
"source": "generated",
|
|
598
642
|
"file": "generated/sw_model_29.svg"
|
|
599
643
|
},
|
|
644
|
+
"tactical_knife": {
|
|
645
|
+
"source": "generated",
|
|
646
|
+
"file": "generated/tactical_knife.svg"
|
|
647
|
+
},
|
|
600
648
|
"taurus_82": {
|
|
601
649
|
"source": "generated",
|
|
602
650
|
"file": "generated/taurus_82.svg"
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HostTool, HostEvent, TestableModule, AreaPlacement, TestableItem, DestructibleSpec, ToolClipSet } from '@adatechnology/game-contracts';
|
|
1
|
+
import { HostTool, HostEvent, TestableModule, AreaPlacement, TestableItem, EffectSink, DestructibleSpec, ToolClipSet } from '@adatechnology/game-contracts';
|
|
2
2
|
import { CaliberDef, ReloadStageId, WeaponEvent, MountKind, AttachmentDef, FittedAttachment, Arsenal, ExplosiveDef, WeaponDef, CartridgeDims, CaseType, ReloadFamily } from '@adatechnology/game-weapons';
|
|
3
3
|
import * as THREE_NS from 'three';
|
|
4
4
|
|
|
@@ -607,6 +607,27 @@ declare const WORLD_EXPLOSIVE_IDS: readonly string[];
|
|
|
607
607
|
/** An explosive of the arsenal standing in the world: it goes off by a bullet, fire or another blast, after the delay its `chain` gives. */
|
|
608
608
|
declare const worldExplosiveItem: (def: ExplosiveDef, name: string) => TestableItem | undefined;
|
|
609
609
|
|
|
610
|
+
/** The effect ids a weapon of a case type shows when it is seen from outside: its muzzle flash and its ejected case (the host's catalogue names them). */
|
|
611
|
+
interface WorldEffectIds {
|
|
612
|
+
readonly muzzle: string;
|
|
613
|
+
readonly casing: string;
|
|
614
|
+
}
|
|
615
|
+
declare const WORLD_EFFECTS: Readonly<Record<string, WorldEffectIds>>;
|
|
616
|
+
interface WorldEffectsOptions {
|
|
617
|
+
readonly arsenal: Arsenal;
|
|
618
|
+
/** The case type of a weapon (`pistol`, `rifle`, `shell`, `big`, `tiny`); default from its caliber. */
|
|
619
|
+
readonly caseTypeOf?: (weapon: string) => string | undefined;
|
|
620
|
+
/** The ids by case type; default `WORLD_EFFECTS`. A game adds or changes entries. */
|
|
621
|
+
readonly ids?: Readonly<Record<string, WorldEffectIds>>;
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* The shooter's flash and ejected case for a shot the viewer sees from outside (a `shot` event that carries `origin`), played through the host's
|
|
625
|
+
* effect sink. The player's own first-person shot has no `origin` and is drawn by the weapon in the hands, so nothing doubles.
|
|
626
|
+
*/
|
|
627
|
+
declare function createWorldEffects(options: WorldEffectsOptions): {
|
|
628
|
+
handle(event: HostEvent, sink: EffectSink | undefined): number;
|
|
629
|
+
};
|
|
630
|
+
|
|
610
631
|
/** A low-poly prop: its destruction spec (box parts only) and one colour per part. */
|
|
611
632
|
interface WeaponProp {
|
|
612
633
|
spec: DestructibleSpec;
|
|
@@ -702,4 +723,4 @@ declare function rigUnderbarrel(THREE: typeof THREE_NS, model: WeaponModel, def:
|
|
|
702
723
|
*/
|
|
703
724
|
declare function rigStock(THREE: typeof THREE_NS, model: WeaponModel, def: Pick<WeaponDef, 'stock' | 'dimensions'>): void;
|
|
704
725
|
|
|
705
|
-
export { ARCHETYPE_MODELS, ATTACHMENT_MODELS, type AttachmentBuildContext, type AttachmentModel, type AttachmentModelBuilder, type AttachmentModelRegistry, type AttachmentRig, BODY_ACTIONS, CLASS_REFERENCE_ENERGY, COUNTER_ITEM_ID, type CartridgeShape, type ClipContext, DEFAULT_ENERGY_CURVE, DEFAULT_THUMBNAIL_BASE, type DistanceCurve, type EnergyCurve, type FitAttachmentOptions, type FxLayers, GAME_DISTANCE_CURVE, GAME_SOUND_CLASSES, type LaserRaycast, MECHANICAL_SOUNDS, MODEL_ENTRIES, MOUNTED_M134_ITEM_ID, type MechanicalSoundId, type ModelEntry, type ModelFamily, type ModelKit, type ModelMaterials, type ModelOptions, type ModelParts, type MountFrame, type ShotExtras, type ShotSound, type ShotSoundClass, type ShotSoundInput, type ShotSoundOptions, type SoundClassDef, type SoundStep, WEAPON_ITEM_PREFIX, WEAPON_THUMBNAILS, WORLD_EXPLOSIVE_IDS, WORLD_EXPLOSIVE_PREFIX, type WeaponAudio, type WeaponAudioOptions, type WeaponFx, type WeaponFxOptions, type WeaponModel, type WeaponProp, type WeaponThumbnailEntry, type WeaponsTestModuleOptions, applyCondition, buildCartridge, buildCasing, buildProp, buildRound, buildToolClips, buildWeaponModel, buildWeaponModelById, cartridgeShape, computeShotSound, createWeaponAudio, createWeaponFx, createWeaponsTestModule, deriveFrames, fitAttachmentModels, hasWeaponModel, mechanicalSoundOf, modelKit, mountFrame, partRegistry, rigStock, rigUnderbarrel, weaponProp, weaponThumbnailCredit, weaponThumbnailUrl, weaponsLayout, worldExplosiveItem };
|
|
726
|
+
export { ARCHETYPE_MODELS, ATTACHMENT_MODELS, type AttachmentBuildContext, type AttachmentModel, type AttachmentModelBuilder, type AttachmentModelRegistry, type AttachmentRig, BODY_ACTIONS, CLASS_REFERENCE_ENERGY, COUNTER_ITEM_ID, type CartridgeShape, type ClipContext, DEFAULT_ENERGY_CURVE, DEFAULT_THUMBNAIL_BASE, type DistanceCurve, type EnergyCurve, type FitAttachmentOptions, type FxLayers, GAME_DISTANCE_CURVE, GAME_SOUND_CLASSES, type LaserRaycast, MECHANICAL_SOUNDS, MODEL_ENTRIES, MOUNTED_M134_ITEM_ID, type MechanicalSoundId, type ModelEntry, type ModelFamily, type ModelKit, type ModelMaterials, type ModelOptions, type ModelParts, type MountFrame, type ShotExtras, type ShotSound, type ShotSoundClass, type ShotSoundInput, type ShotSoundOptions, type SoundClassDef, type SoundStep, WEAPON_ITEM_PREFIX, WEAPON_THUMBNAILS, WORLD_EFFECTS, WORLD_EXPLOSIVE_IDS, WORLD_EXPLOSIVE_PREFIX, type WeaponAudio, type WeaponAudioOptions, type WeaponFx, type WeaponFxOptions, type WeaponModel, type WeaponProp, type WeaponThumbnailEntry, type WeaponsTestModuleOptions, type WorldEffectIds, type WorldEffectsOptions, applyCondition, buildCartridge, buildCasing, buildProp, buildRound, buildToolClips, buildWeaponModel, buildWeaponModelById, cartridgeShape, computeShotSound, createWeaponAudio, createWeaponFx, createWeaponsTestModule, createWorldEffects, deriveFrames, fitAttachmentModels, hasWeaponModel, mechanicalSoundOf, modelKit, mountFrame, partRegistry, rigStock, rigUnderbarrel, weaponProp, weaponThumbnailCredit, weaponThumbnailUrl, weaponsLayout, worldExplosiveItem };
|