@adatechnology/game-vehicles-three 0.9.13 → 0.10.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
@@ -17,6 +17,7 @@ import {
17
17
  PROVING_AREA_ID,
18
18
  PROVING_TEXT,
19
19
  PRUNE_BELOW,
20
+ RAIN_SHELL_INTERVAL,
20
21
  TRUCK_ENGINE,
21
22
  VEHICLES_AREA_ID,
22
23
  VEHICLE_LOD_DISTANCE,
@@ -39,6 +40,7 @@ import {
39
40
  createVehicleLamps,
40
41
  createVehicleLod,
41
42
  createVehicleLodQueue,
43
+ createVehicleRainCovers,
42
44
  createVehicleSound,
43
45
  createVehiclesTestModule,
44
46
  createVehiclesThree,
@@ -59,7 +61,7 @@ import {
59
61
  rpmShare,
60
62
  slideOfGrip,
61
63
  vehicleColliders
62
- } from "./chunk-VCFML7I4.js";
64
+ } from "./chunk-5T52WAQS.js";
63
65
  export {
64
66
  BIKE_ENGINE,
65
67
  CAR_ENGINE,
@@ -79,6 +81,7 @@ export {
79
81
  PROVING_AREA_ID,
80
82
  PROVING_TEXT,
81
83
  PRUNE_BELOW,
84
+ RAIN_SHELL_INTERVAL,
82
85
  TRUCK_ENGINE,
83
86
  VEHICLES_AREA_ID,
84
87
  VEHICLE_LOD_DISTANCE,
@@ -101,6 +104,7 @@ export {
101
104
  createVehicleLamps,
102
105
  createVehicleLod,
103
106
  createVehicleLodQueue,
107
+ createVehicleRainCovers,
104
108
  createVehicleSound,
105
109
  createVehiclesTestModule,
106
110
  createVehiclesThree,
@@ -301,6 +301,15 @@ type ModuleRoomLike = {
301
301
  * (`attach`), so this first lends an empty module to learn the namespace and then loads the real one with it. Pass `three` to skip that.
302
302
  */
303
303
  declare function loadVehiclesTestModule<Room extends ModuleRoomLike>(room: Room, options?: VehiclesTestOptions): ReturnType<Room['loadModule']>;
304
+ /** What `loadVehiclesTestModuleAsync` needs of a room: `TestRoom.loadModuleAsync` has it. */
305
+ type AsyncModuleRoomLike<TReport> = ModuleRoomLike & {
306
+ loadModuleAsync(module: never, between: (itemId: string) => Promise<void>): Promise<TReport>;
307
+ };
308
+ /**
309
+ * `loadVehiclesTestModule` a vehicle at a time: building and checking a vehicle takes a while (the fleet's eight and two wrecks, seconds in all), so `between(itemId)` is
310
+ * awaited before each one and the page paints and moves its bar instead of freezing.
311
+ */
312
+ declare function loadVehiclesTestModuleAsync<TReport>(room: AsyncModuleRoomLike<TReport>, between: (itemId: string) => Promise<void>, options?: VehiclesTestOptions): Promise<TReport>;
304
313
 
305
314
  declare const VEHICLE_SCENARIO_IDS: readonly string[];
306
315
  /** The ids of the Frota test page, for whoever keeps a report or a link made against it. */
@@ -405,4 +414,4 @@ type ProvingText = {
405
414
  };
406
415
  declare const PROVING_TEXT: Record<string, ProvingText>;
407
416
 
408
- export { type VehiclesTestOptions as A, type BuiltVehicle as B, CAR_ENGINE as C, DEFAULT_TEST_VEHICLES as D, type EngineProfile as E, type FleetDims as F, type VehiclesThree as G, type VehiclesThreeOptions as H, createProvingModule as I, createVehiclesTestModule as J, createVehiclesThree as K, defaultEffectIds as L, type ModuleRoomLike as M, defaultSoundIds as N, engineProfileOfGroup as O, PAGE_ITEM_ALIASES as P, hornOfGroup as Q, loadProvingModule as R, loadVehiclesTestModule as S, TRUCK_ENGINE as T, type VehicleSoundKeys as V, BIKE_ENGINE as a, type BuildVehicleOptions as b, CRASH_SPEEDS as c, DEFAULT_TEST_WRECKS as d, DEFAULT_VEHICLE_SOUND_KEYS as e, type DocumentLike as f, ENGINE_PROFILES as g, type EffectsLike as h, type EngineLayer as i, type EngineLoadLayer as j, PAGE_SCENARIO_ALIASES as k, PROVING_AREA_ID as l, PROVING_TEXT as m, type ProvingModuleOptions as n, type ProvingRoomLike as o, type ProvingText as p, VEHICLES_AREA_ID as q, VEHICLE_SCENARIO_IDS as r, type VehicleEffectIds as s, type VehicleFleetContent as t, type VehicleQuality as u, type VehicleSoundIds as v, type VehicleWreck as w, type VehiclesContext as x, type VehiclesRoom as y, type VehiclesTestFleet as z };
417
+ export { type VehiclesTestOptions as A, type BuiltVehicle as B, CAR_ENGINE as C, DEFAULT_TEST_VEHICLES as D, type EngineProfile as E, type FleetDims as F, type VehiclesThree as G, type VehiclesThreeOptions as H, createProvingModule as I, createVehiclesTestModule as J, createVehiclesThree as K, defaultEffectIds as L, type ModuleRoomLike as M, defaultSoundIds as N, engineProfileOfGroup as O, PAGE_ITEM_ALIASES as P, hornOfGroup as Q, loadProvingModule as R, loadVehiclesTestModule as S, TRUCK_ENGINE as T, type AsyncModuleRoomLike as U, type VehicleSoundKeys as V, loadVehiclesTestModuleAsync as W, BIKE_ENGINE as a, type BuildVehicleOptions as b, CRASH_SPEEDS as c, DEFAULT_TEST_WRECKS as d, DEFAULT_VEHICLE_SOUND_KEYS as e, type DocumentLike as f, ENGINE_PROFILES as g, type EffectsLike as h, type EngineLayer as i, type EngineLoadLayer as j, PAGE_SCENARIO_ALIASES as k, PROVING_AREA_ID as l, PROVING_TEXT as m, type ProvingModuleOptions as n, type ProvingRoomLike as o, type ProvingText as p, VEHICLES_AREA_ID as q, VEHICLE_SCENARIO_IDS as r, type VehicleEffectIds as s, type VehicleFleetContent as t, type VehicleQuality as u, type VehicleSoundIds as v, type VehicleWreck as w, type VehiclesContext as x, type VehiclesRoom as y, type VehiclesTestFleet as z };
package/dist/testing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { D as DEFAULT_TEST_VEHICLES, d as DEFAULT_TEST_WRECKS, f as DocumentLike, h as EffectsLike, M as ModuleRoomLike, P as PAGE_ITEM_ALIASES, k as PAGE_SCENARIO_ALIASES, l as PROVING_AREA_ID, m as PROVING_TEXT, n as ProvingModuleOptions, o as ProvingRoomLike, p as ProvingText, q as VEHICLES_AREA_ID, r as VEHICLE_SCENARIO_IDS, s as VehicleEffectIds, v as VehicleSoundIds, w as VehicleWreck, x as VehiclesContext, y as VehiclesRoom, z as VehiclesTestFleet, A as VehiclesTestOptions, I as createProvingModule, J as createVehiclesTestModule, L as defaultEffectIds, N as defaultSoundIds, R as loadProvingModule, S as loadVehiclesTestModule } from './testing-CY8IYz1H.js';
1
+ export { U as AsyncModuleRoomLike, D as DEFAULT_TEST_VEHICLES, d as DEFAULT_TEST_WRECKS, f as DocumentLike, h as EffectsLike, M as ModuleRoomLike, P as PAGE_ITEM_ALIASES, k as PAGE_SCENARIO_ALIASES, l as PROVING_AREA_ID, m as PROVING_TEXT, n as ProvingModuleOptions, o as ProvingRoomLike, p as ProvingText, q as VEHICLES_AREA_ID, r as VEHICLE_SCENARIO_IDS, s as VehicleEffectIds, v as VehicleSoundIds, w as VehicleWreck, x as VehiclesContext, y as VehiclesRoom, z as VehiclesTestFleet, A as VehiclesTestOptions, I as createProvingModule, J as createVehiclesTestModule, L as defaultEffectIds, N as defaultSoundIds, R as loadProvingModule, S as loadVehiclesTestModule, W as loadVehiclesTestModuleAsync } from './testing-CRVetKNa.js';
2
2
  import '@adatechnology/game-contracts';
3
3
  import '@adatechnology/game-vehicles';
4
4
  import 'three';
package/dist/testing.js CHANGED
@@ -12,8 +12,9 @@ import {
12
12
  defaultEffectIds,
13
13
  defaultSoundIds,
14
14
  loadProvingModule,
15
- loadVehiclesTestModule
16
- } from "./chunk-VCFML7I4.js";
15
+ loadVehiclesTestModule,
16
+ loadVehiclesTestModuleAsync
17
+ } from "./chunk-5T52WAQS.js";
17
18
  export {
18
19
  DEFAULT_TEST_VEHICLES,
19
20
  DEFAULT_TEST_WRECKS,
@@ -28,6 +29,7 @@ export {
28
29
  defaultEffectIds,
29
30
  defaultSoundIds,
30
31
  loadProvingModule,
31
- loadVehiclesTestModule
32
+ loadVehiclesTestModule,
33
+ loadVehiclesTestModuleAsync
32
34
  };
33
35
  //# sourceMappingURL=testing.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adatechnology/game-vehicles-three",
3
- "version": "0.9.13",
3
+ "version": "0.10.0",
4
4
  "license": "MIT",
5
5
  "description": "three.js output of the vehicles of @adatechnology/game-vehicles: a vehicle in a game frame (front on +z, centred, on the ground) at full detail or fused into six meshes (the team's Frota Leve light mode), coloured by seed, with its damageable boxes; and the vehicles test module.",
6
6
  "keywords": [
@@ -41,16 +41,16 @@
41
41
  "dist"
42
42
  ],
43
43
  "dependencies": {
44
- "@adatechnology/game-audio": "^0.15.3",
44
+ "@adatechnology/game-audio": "^0.15.4",
45
45
  "@adatechnology/game-camera": "^0.3.0",
46
- "@adatechnology/game-contracts": "^0.39.0",
47
- "@adatechnology/game-render-three": "^0.4.3",
48
- "@adatechnology/game-shapes": "^0.4.3",
46
+ "@adatechnology/game-contracts": "^0.40.0",
47
+ "@adatechnology/game-render-three": "^0.4.4",
48
+ "@adatechnology/game-shapes": "^0.4.4",
49
49
  "@adatechnology/game-shapes-three": "^0.4.1",
50
- "@adatechnology/game-vehicles": "^0.6.21",
51
- "@adatechnology/game-vehicles-driving": "^0.2.26",
52
- "@adatechnology/game-vehicles-fleet": "^7.0.0",
53
- "@adatechnology/game-vehicles-proving": "^0.2.3"
50
+ "@adatechnology/game-vehicles": "^0.7.0",
51
+ "@adatechnology/game-vehicles-driving": "^0.2.27",
52
+ "@adatechnology/game-vehicles-fleet": "^8.0.0",
53
+ "@adatechnology/game-vehicles-proving": "^0.2.4"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/node": "^22.10.7",
@@ -60,8 +60,8 @@
60
60
  "tsup": "^8.5.1",
61
61
  "typescript": "^5.7.3",
62
62
  "vitest": "^3.2.4",
63
- "@adatechnology/game-kit-defaults": "^0.3.5",
64
- "@adatechnology/game-test-room": "^0.38.2",
63
+ "@adatechnology/game-kit-defaults": "^0.3.6",
64
+ "@adatechnology/game-test-room": "^0.38.3",
65
65
  "@adatechnology/golden-tool": "^0.0.0"
66
66
  },
67
67
  "peerDependencies": {