@adatechnology/game-vehicles-fleet 10.0.0 → 10.1.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.
@@ -3787,4 +3790,4 @@ declare const FLEET_ACCELERATION_SOURCES: Readonly<Record<string, AccelerationSo
3787
3790
  /** Returns the R6 cabin clearance category for a fleet vehicle id (Spec 012 R6). */
3788
3791
  declare function fleetCabinCategoryOf(id: FleetVehicleId): CabinCategory;
3789
3792
 
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 };
3793
+ 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, 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 };
@@ -37,6 +37,7 @@ var GameVehiclesFleet = (() => {
37
37
  fleetGroupIds: () => fleetGroupIds,
38
38
  fleetGroupOf: () => fleetGroupOf,
39
39
  fleetGroups: () => fleetGroups,
40
+ fleetHullCeilingOf: () => fleetHullCeilingOf,
40
41
  fleetPack: () => fleetPack,
41
42
  fleetProvingSubject: () => fleetProvingSubject,
42
43
  fleetStats: () => fleetStats,
@@ -30587,6 +30588,10 @@ var GameVehiclesFleet = (() => {
30587
30588
  };
30588
30589
  }
30589
30590
 
30591
+ // src/hull-ceilings.ts
30592
+ var HULL_CEILING = { motorcycles: 64, cars: 256, suvs: 256, pickups: 256, vans: 300, heavy: 550, agricultural: 150, military: 500, air: 500, water: 450 };
30593
+ var fleetHullCeilingOf = (id) => HULL_CEILING[fleetGroupOf(id) ?? ""];
30594
+
30590
30595
  // src/acceleration-sources.ts
30591
30596
  var FLEET_ACCELERATION_SOURCES = {
30592
30597
  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)" },