@adatechnology/game-vehicles-fleet 10.0.0 → 11.0.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 CHANGED
@@ -3773,6 +3773,9 @@ declare const fleetGroupOf: (id: string) => string | undefined;
3773
3773
  */
3774
3774
  declare function fleetProvingSubject(id: string, options?: Partial<Pick<VehicleCardData, 'mass' | 'wheelbase' | 'track' | 'fourWheelDrive'>>): ProvingSubject | null;
3775
3775
 
3776
+ /** The hull ceiling of a fleet vehicle by its group; undefined for an id of no group. */
3777
+ declare const fleetHullCeilingOf: (id: string) => number | undefined;
3778
+
3776
3779
  /**
3777
3780
  * Where the acceleration rating (0-10) of each car and SUV comes from: the real 0-100 km/h of the model it is inspired by, placed on the class band of
3778
3781
  * `defaultRangeTable.accelerationByClass` in `game-vehicles-proving` (cars 15.5 s at rating 1 to 4.8 s at 10; suvs 12.7 s to 6.7 s), rounded to the nearest rating.
@@ -3783,8 +3786,13 @@ interface AccelerationSource {
3783
3786
  readonly source: string;
3784
3787
  }
3785
3788
  declare const FLEET_ACCELERATION_SOURCES: Readonly<Record<string, AccelerationSource>>;
3789
+ /**
3790
+ * Where the figures of the models outside the rating review come from (the physics engine's proving run, T6.2d): not a rating placed on a class band, a band or a ficha figure of their own.
3791
+ * The numbers live where they are used (`ranges.ts` of `game-vehicles-proving`, `from-stats.ts` of `game-vehicles-driving`); this is the record that goes with the content.
3792
+ */
3793
+ declare const FLEET_PHYSICS_SOURCES: Readonly<Record<string, readonly AccelerationSource[]>>;
3786
3794
 
3787
3795
  /** Returns the R6 cabin clearance category for a fleet vehicle id (Spec 012 R6). */
3788
3796
  declare function fleetCabinCategoryOf(id: FleetVehicleId): CabinCategory;
3789
3797
 
3790
- export { type AccelerationSource, FLEET_ACCELERATION_SOURCES, FLEET_FOUR_WHEEL_DRIVE, type FleetAxle, type FleetCard, type FleetContext, type FleetDims, type FleetFuel, type FleetGroupId, type FleetLabel, type FleetOptions, type FleetScenarioId, type FleetShared, type FleetStats, type FleetTracks, type FleetVehicleId, type FleetWheelLayout, type PaintPalette, agricultural, air, allFleetDims, cars, colorFromSeed, createFleetPack, createScenarios, en as enLocale, fleetCabinCategoryOf, fleetCard, fleetDims, fleetGroupIds, fleetGroupOf, fleetGroups, fleetPack, fleetProvingSubject, fleetStats, fleetVehicleIds, fleetVehicleTypeOf, fleetWheelLayout, heavy, installFleet, legacyGlassLabels, legacyScenarioSeeds, legacyVehicleSeeds, legacyZoneIds, military, motorcycles, paintPalettes, paletteOf, pickups, ptBR as ptBrLocale, scenarioIds, suvs, vans, version, water };
3798
+ export { type AccelerationSource, FLEET_ACCELERATION_SOURCES, FLEET_FOUR_WHEEL_DRIVE, FLEET_PHYSICS_SOURCES, type FleetAxle, type FleetCard, type FleetContext, type FleetDims, type FleetFuel, type FleetGroupId, type FleetLabel, type FleetOptions, type FleetScenarioId, type FleetShared, type FleetStats, type FleetTracks, type FleetVehicleId, type FleetWheelLayout, type PaintPalette, agricultural, air, allFleetDims, cars, colorFromSeed, createFleetPack, createScenarios, en as enLocale, fleetCabinCategoryOf, fleetCard, fleetDims, fleetGroupIds, fleetGroupOf, fleetGroups, fleetHullCeilingOf, fleetPack, fleetProvingSubject, fleetStats, fleetVehicleIds, fleetVehicleTypeOf, fleetWheelLayout, heavy, installFleet, legacyGlassLabels, legacyScenarioSeeds, legacyVehicleSeeds, legacyZoneIds, military, motorcycles, paintPalettes, paletteOf, pickups, ptBR as ptBrLocale, scenarioIds, suvs, vans, version, water };
@@ -23,6 +23,7 @@ var GameVehiclesFleet = (() => {
23
23
  __export(index_exports, {
24
24
  FLEET_ACCELERATION_SOURCES: () => FLEET_ACCELERATION_SOURCES,
25
25
  FLEET_FOUR_WHEEL_DRIVE: () => FLEET_FOUR_WHEEL_DRIVE,
26
+ FLEET_PHYSICS_SOURCES: () => FLEET_PHYSICS_SOURCES,
26
27
  agricultural: () => agricultural,
27
28
  air: () => air,
28
29
  allFleetDims: () => allFleetDims,
@@ -37,6 +38,7 @@ var GameVehiclesFleet = (() => {
37
38
  fleetGroupIds: () => fleetGroupIds,
38
39
  fleetGroupOf: () => fleetGroupOf,
39
40
  fleetGroups: () => fleetGroups,
41
+ fleetHullCeilingOf: () => fleetHullCeilingOf,
40
42
  fleetPack: () => fleetPack,
41
43
  fleetProvingSubject: () => fleetProvingSubject,
42
44
  fleetStats: () => fleetStats,
@@ -30587,6 +30589,10 @@ var GameVehiclesFleet = (() => {
30587
30589
  };
30588
30590
  }
30589
30591
 
30592
+ // src/hull-ceilings.ts
30593
+ var HULL_CEILING = { motorcycles: 64, cars: 256, suvs: 256, pickups: 256, vans: 300, heavy: 550, agricultural: 150, military: 500, air: 500, water: 450 };
30594
+ var fleetHullCeilingOf = (id) => HULL_CEILING[fleetGroupOf(id) ?? ""];
30595
+
30590
30596
  // src/acceleration-sources.ts
30591
30597
  var FLEET_ACCELERATION_SOURCES = {
30592
30598
  compact_hatch: { seconds: 13.3, source: "Chevrolet Onix 1.0 naturally aspirated: 13.3 s ethanol / 13.7 s petrol (GM, via https://www.webmotors.com.br/wm1/testes/teste-chevrolet-onix-1-0/ e https://www.fichacompleta.com.br/carros/chevrolet/onix-1-0-2025)" },
@@ -30609,6 +30615,15 @@ var GameVehiclesFleet = (() => {
30609
30615
  midsize_suv: { seconds: null, source: "no source: Jeep Compass Longitude, only figures for other engines and markets (10.3 s at 130 hp, 9.2 s at 150 hp, 10.7 s at altitude)" },
30610
30616
  large_suv: { seconds: null, source: "no source: the current Toyota SW4 2.8 has no published 0-100 (the only figure found is the old SW4, 25.5 s)" }
30611
30617
  };
30618
+ var FLEET_PHYSICS_SOURCES = {
30619
+ bicycle: [
30620
+ { seconds: 24, source: "to 20 km/h at the mean acceleration of observed riders, 0.231 m/s^2 over about 26 s at about 120 W: Parkin and Rotheram 2010, Transport Policy 17(5) 335-341 (https://uwe-repository.worktribe.com/output/987466): the slowest edge of the band" },
30621
+ { seconds: 7.2, source: 'to 20 km/h from "9 to 14 s to 25 km/h" of an everyday rider, 0.5 to 0.8 m/s^2 (https://myvelo.net/blogs/ebike-blog/wie-schnell-beschleunigt-ein-e-bike-motor-gewicht-realitaet; a shop article, the power not stated): the fastest edge' }
30622
+ ],
30623
+ battle_tank: [
30624
+ { seconds: null, source: 'power 20.05 kW/t: M1 Abrams 17.74 to 20.05 kW/t, 1.12 MW (https://en.wikipedia.org/wiki/M1_Abrams); Leopard 2A6 17.8 kW/t (https://en.wikipedia.org/wiki/Leopard_2). Turn: a tracked vehicle pivots on the spot, "neutral steering" (https://en.wikipedia.org/wiki/Tank_steering_systems): the turn band starts at 0' }
30625
+ ]
30626
+ };
30612
30627
 
30613
30628
  // src/cabin-categories.ts
30614
30629
  var CABIN_OVERRIDES = {