@adatechnology/game-test-room 0.23.0 → 0.25.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.d.ts +8 -1
- package/dist/index.global.js +364 -164
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +77 -13
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { AudioEngine } from '@adatechnology/game-audio';
|
|
|
4
4
|
import { Vec3 as Vec3$1, DestructionWorld, BlastOptions, DestructibleSpec, DestructionOptions, DestructionEvent } from '@adatechnology/game-destruction';
|
|
5
5
|
export { DestructionEvent, Vec3 } from '@adatechnology/game-destruction';
|
|
6
6
|
import { DoorUsePhase, FurniturePushPhase, FurniturePushBlock, FurniturePushRules, DoorUseRules } from '@adatechnology/game-player';
|
|
7
|
-
import { BusySink, ItemSeat, Vec3, HandTargets, ModuleControl, ControlValue, ModuleLayer, EnvironmentBus, Knock, BusyTask, BusyOptions, TestableModule, ModuleItemSeal, DestructibleImpl, AnimationClipSpec, ItemSounds, GroundLayout, BlastShoveOptions } from '@adatechnology/game-contracts';
|
|
7
|
+
import { BusySink, ItemSeat, Vec3, HandTargets, ModuleControl, ControlValue, ModuleLayer, EnvironmentBus, Knock, BusyTask, BusyOptions, TestableModule, ModuleItemSeal, DestructibleImpl, AnimationClipSpec, ItemSounds, GroundLayout, BlastImpulseOptions, BlastShoveOptions } from '@adatechnology/game-contracts';
|
|
8
8
|
export { AnimationClipSpec, DestructibleImpl, ItemAnimationContract, ModuleScenario, TestableItem, TestableModule } from '@adatechnology/game-contracts';
|
|
9
9
|
import { DestructionRenderer, SpecFromObjectOptions, Quality, SoundDetail, FragmentLifeRule } from '@adatechnology/game-destruction-three';
|
|
10
10
|
import { StorageLike, GraphicsController } from '@adatechnology/game-graphics';
|
|
@@ -751,6 +751,11 @@ interface TestRoomOptions {
|
|
|
751
751
|
audio?: AudioEngine | false;
|
|
752
752
|
/** Where the kit's recorded sound files (game-audio `assets/sfx/`) are served, for the room's engine (default `./sfx/`); `null` plays the recipes only. */
|
|
753
753
|
samplesBaseUrl?: string | null;
|
|
754
|
+
/**
|
|
755
|
+
* Where the owner's own sounds are served (`sfx:user` of game-audio writes them to `.sfx-local/`, kept out of git), default `./sfx-local/`; `null`
|
|
756
|
+
* leaves them out. They load after the kit's: a sound the kit lacks plays the owner's file, and one the kit has keeps the kit's in front.
|
|
757
|
+
*/
|
|
758
|
+
userSamplesBaseUrl?: string | null;
|
|
754
759
|
/** The environment store modules get as `host.environment` (the weather module writes it, the others read it). Default: a new one with a calm dry day. */
|
|
755
760
|
environment?: EnvironmentBus;
|
|
756
761
|
/** Show the built-in HUD and panels (default true). */
|
|
@@ -826,6 +831,8 @@ interface TestRoomOptions {
|
|
|
826
831
|
* The numbers of the shove an explosion gives to what is around it: loose items, furniture, and the bodies of the modules (people), which read them from `ModuleHost.blastShove`.
|
|
827
832
|
* Default: the SDK's (`DEFAULT_BLAST_SHOVE` of game-contracts: 2 % of the energy becomes speed, 20 m/s at most, falloff `(1 - d / r)^2`).
|
|
828
833
|
*/
|
|
834
|
+
/** The body the blast wave pushes (the player's area, the charge read from a blast without one): `knockOf` of `game-contracts`. Default `DEFAULT_BLAST_IMPULSE`. */
|
|
835
|
+
blastImpulse?: BlastImpulseOptions;
|
|
829
836
|
blastShove?: BlastShoveOptions;
|
|
830
837
|
/** Mass of the player's body in kg: how far a blast throws it and whether it knocks it down (default 70, the `bodyMass` of 1.75 m). */
|
|
831
838
|
playerMass?: number;
|