@adatechnology/game-vehicles-three 0.6.0 → 0.6.1

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
@@ -2,10 +2,12 @@ import {
2
2
  BIKE_ENGINE,
3
3
  CAR_ENGINE,
4
4
  CRASH_SPEEDS,
5
+ DASHBOARD_LOOK,
5
6
  DEFAULT_TEST_VEHICLES,
6
7
  DEFAULT_TEST_WRECKS,
7
8
  DEFAULT_VEHICLE_SOUND_KEYS,
8
9
  ENGINE_PROFILES,
10
+ LAMP_RULES,
9
11
  LITE_CLASSES,
10
12
  PAGE_ITEM_ALIASES,
11
13
  PAGE_SCENARIO_ALIASES,
@@ -25,6 +27,8 @@ import {
25
27
  createCabinSmoke,
26
28
  createGearGuess,
27
29
  createProvingModule,
30
+ createVehicleDashboard,
31
+ createVehicleLamps,
28
32
  createVehicleLod,
29
33
  createVehicleSound,
30
34
  createVehiclesTestModule,
@@ -40,15 +44,17 @@ import {
40
44
  loadProvingModule,
41
45
  loadVehiclesTestModule,
42
46
  rpmShare
43
- } from "./chunk-4SUQMRS3.js";
47
+ } from "./chunk-MRUPKE7J.js";
44
48
  export {
45
49
  BIKE_ENGINE,
46
50
  CAR_ENGINE,
47
51
  CRASH_SPEEDS,
52
+ DASHBOARD_LOOK,
48
53
  DEFAULT_TEST_VEHICLES,
49
54
  DEFAULT_TEST_WRECKS,
50
55
  DEFAULT_VEHICLE_SOUND_KEYS,
51
56
  ENGINE_PROFILES,
57
+ LAMP_RULES,
52
58
  LITE_CLASSES,
53
59
  PAGE_ITEM_ALIASES,
54
60
  PAGE_SCENARIO_ALIASES,
@@ -68,6 +74,8 @@ export {
68
74
  createCabinSmoke,
69
75
  createGearGuess,
70
76
  createProvingModule,
77
+ createVehicleDashboard,
78
+ createVehicleLamps,
71
79
  createVehicleLod,
72
80
  createVehicleSound,
73
81
  createVehiclesTestModule,
@@ -54,6 +54,11 @@ interface BuiltVehicle {
54
54
  expected: FleetDims | undefined;
55
55
  /** The kit's context, for damage and animation (full detail only). */
56
56
  context: VehicleContext | null;
57
+ /**
58
+ * The driver's eyes in the group frame: over the front seat on the driver's side (+x, left-hand drive), a seated person's eye height above the cushion.
59
+ * Null when the vehicle has no seats drawn (lite detail, a boat deck).
60
+ */
61
+ driverEye: [number, number, number] | null;
57
62
  dispose(): void;
58
63
  }
59
64
  interface VehiclesThree {
@@ -71,10 +76,6 @@ interface VehiclesThreeOptions {
71
76
  /** Vehicle id to the group id whose palette paints it. Defaults to the fleet group of the vehicle (`military` for the military ones). */
72
77
  groupOf?: (key: string) => string;
73
78
  }
74
- /**
75
- * Builds vehicles in a game frame. Port of `FrotaLeve.criar(...).construir` (frota-leve.js 14311-14442): the kit builds with +x to the front
76
- * and +z to the right; the game wants +z to the front and -x to the right, the vehicle centred on x and z and standing on y = 0.
77
- */
78
79
  declare function createVehiclesThree(THREE: any, options: VehiclesThreeOptions): VehiclesThree;
79
80
 
80
81
  /**
@@ -319,11 +320,12 @@ declare function loadProvingModule<Room extends ProvingRoomLike>(room: Room, opt
319
320
  /** Texts of the proving ground, in Brazilian Portuguese and English. */
320
321
  type ProvingText = {
321
322
  name: string;
322
- controls: Record<'vehicle' | 'test' | 'camera' | 'time_scale' | 'visual_check', string>;
323
- hints: Record<'vehicle' | 'test' | 'camera' | 'time_scale' | 'visual_check', string>;
324
- actions: Record<'run_test' | 'run_all' | 'certify_now' | 'reverse_park' | 'sign_ok' | 'sign_fail' | 'reset', string>;
323
+ controls: Record<'vehicle' | 'test' | 'camera' | 'time_scale' | 'visual_check' | 'gearbox', string>;
324
+ hints: Record<'vehicle' | 'test' | 'camera' | 'time_scale' | 'visual_check' | 'gearbox', string>;
325
+ gearbox: Record<'automatic' | 'manual', string>;
326
+ actions: Record<'drive' | 'run_test' | 'run_all' | 'certify_now' | 'reverse_park' | 'sign_ok' | 'sign_fail' | 'reset', string>;
325
327
  layers: Record<'mirrors' | 'reverse_camera' | 'scoreboard', string>;
326
- metrics: Record<'speed' | 'time' | 'value' | 'passed' | 'failed' | 'pending' | 'status', string>;
328
+ metrics: Record<'gear' | 'rpm' | 'speed' | 'time' | 'value' | 'passed' | 'failed' | 'pending' | 'status', string>;
327
329
  cameras: Record<'room' | 'chase' | 'cockpit' | 'hood', string>;
328
330
  tests: Record<string, string>;
329
331
  status: Record<'approved' | 'rejected' | 'pending', string>;
@@ -336,14 +338,43 @@ type ProvingText = {
336
338
  verdict: string;
337
339
  notRun: string;
338
340
  running: string;
341
+ gear: string;
339
342
  };
340
343
  log: {
341
344
  start: string;
342
345
  result: string;
343
346
  signed: string;
344
347
  certified: string;
348
+ drive: string;
349
+ leave: string;
350
+ shift: string;
351
+ };
352
+ cabin: {
353
+ keys: string;
354
+ on: string;
355
+ off: string;
356
+ ignition: string;
357
+ gearbox: string;
358
+ gear: string;
359
+ parkingBrake: string;
360
+ driveMode: string;
361
+ modes: Record<'4x2' | '4x4' | 'auto', string>;
362
+ lights: string;
363
+ lampModes: Record<'off' | 'position' | 'low' | 'high', string>;
364
+ fog: string;
365
+ interior: string;
366
+ alarm: string;
367
+ alarmStates: Record<'off' | 'armed' | 'ringing', string>;
368
+ radio: string;
369
+ sources: Record<'radio' | 'tape', string>;
370
+ indicator: string;
371
+ indicators: Record<'off' | 'left' | 'right' | 'hazard', string>;
372
+ wipers: string;
373
+ wiperModes: Record<'off' | 'slow' | 'fast', string>;
374
+ seatbelt: string;
375
+ refused: Record<string, string>;
345
376
  };
346
377
  };
347
378
  declare const PROVING_TEXT: Record<string, ProvingText>;
348
379
 
349
- export { type VehiclesTestOptions as A, BIKE_ENGINE 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, loadProvingModule as O, PAGE_ITEM_ALIASES as P, loadVehiclesTestModule as Q, TRUCK_ENGINE as T, type VehicleSoundKeys as V, type BuildVehicleOptions as a, type BuiltVehicle 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 };
380
+ 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, loadProvingModule as O, PAGE_ITEM_ALIASES as P, loadVehiclesTestModule as Q, 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 };
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, O as loadProvingModule, Q as loadVehiclesTestModule } from './testing-gEnSqEF6.js';
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, O as loadProvingModule, Q as loadVehiclesTestModule } from './testing-C-BgV7gj.js';
2
2
  import '@adatechnology/game-contracts';
3
3
  import '@adatechnology/game-vehicles';
4
4
  import '@adatechnology/game-vehicles-proving';
package/dist/testing.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  defaultSoundIds,
14
14
  loadProvingModule,
15
15
  loadVehiclesTestModule
16
- } from "./chunk-4SUQMRS3.js";
16
+ } from "./chunk-MRUPKE7J.js";
17
17
  export {
18
18
  DEFAULT_TEST_VEHICLES,
19
19
  DEFAULT_TEST_WRECKS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adatechnology/game-vehicles-three",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
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,7 +41,7 @@
41
41
  "dist"
42
42
  ],
43
43
  "dependencies": {
44
- "@adatechnology/game-audio": "^0.5.0",
44
+ "@adatechnology/game-audio": "^0.6.0",
45
45
  "@adatechnology/game-camera": "^0.2.0",
46
46
  "@adatechnology/game-contracts": "^0.23.0",
47
47
  "@adatechnology/game-render-three": "^0.1.0",
@@ -60,7 +60,7 @@
60
60
  "typescript": "^5.7.3",
61
61
  "vitest": "^3.2.4",
62
62
  "@adatechnology/game-kit-defaults": "^0.2.0",
63
- "@adatechnology/game-test-room": "^0.22.0",
63
+ "@adatechnology/game-test-room": "^0.24.0",
64
64
  "@adatechnology/golden-tool": "^0.0.0"
65
65
  },
66
66
  "peerDependencies": {