@adatechnology/game-vehicles-fleet 8.0.0 → 10.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/README.md CHANGED
@@ -126,3 +126,7 @@ veja "Left for the game adapter". A tabela completa de nomes antigos e novos est
126
126
  ## Measurements, paint and design cards
127
127
 
128
128
  `fleetDims(id)` (length, width, height in metres as the team measured them), `paintPalettes` and `paletteOf(group)` (13 civil colours and 5 military), `colorFromSeed(seed, palette)` (the same seed gives the same colour; number or text), `fleetStats(id)` (six 0-10 ratings, noise radius, top speed) and `fleetCard(id)` (the design card texts, Brazilian Portuguese). The data are JSON files in `src/data/` written by `tools/vehicles-catalog` from the team's Frota Leve and Frota pages.
129
+
130
+ ## Wheel layouts and sourced acceleration (spec 008)
131
+
132
+ `fleetWheelLayout(id)` gives the axles and the tracks of a model (`src/data/wheel-layouts.json`), which the proving runner reads to build a two-wheeler, a 6x6 or a tracked vehicle on the engine. `FLEET_ACCELERATION_SOURCES` lists the real 0-100 km/h figure and its source for each car and SUV whose acceleration grade was set from data. The vehicle acceptance (CLAUDE.md section 7: a shot lands on the drawn part, the mark follows its part, every pane of glass is a glass part, the goldens of the intact geometry) passes with the engine's hulls: 1 478 tests, no golden changed (T6.12).
package/dist/index.d.ts CHANGED
@@ -3686,6 +3686,35 @@ declare const fleetDims: (id: FleetVehicleId | string) => FleetDims | undefined;
3686
3686
  /** Every measured size by vehicle id. */
3687
3687
  declare const allFleetDims: () => Readonly<Record<string, FleetDims>>;
3688
3688
 
3689
+ /** One axle of a land vehicle in the model's frame (+x ahead): where it is, the distance between its outer wheels (0 for a single wheel) and the radius of its tyres, in metres. */
3690
+ interface FleetAxle {
3691
+ x: number;
3692
+ track: number;
3693
+ radius: number;
3694
+ /** Tyres on the axle, twin wheels counted. */
3695
+ wheels: number;
3696
+ }
3697
+ /** The two tracks of a tracked vehicle: the distance between their centre lines, the rearmost and foremost road wheel along x and the radius of a road wheel. */
3698
+ interface FleetTracks {
3699
+ gauge: number;
3700
+ rearX: number;
3701
+ frontX: number;
3702
+ roadWheels: number;
3703
+ radius: number;
3704
+ }
3705
+ type FleetWheelLayout = {
3706
+ readonly axles: readonly FleetAxle[];
3707
+ readonly tracks?: undefined;
3708
+ } | {
3709
+ readonly tracks: FleetTracks;
3710
+ readonly axles?: undefined;
3711
+ };
3712
+ /**
3713
+ * Where the wheels of a land model are, read from the model itself (`tests/wheel-layouts.test.ts` rebuilds the model and fails when this file is out of date).
3714
+ * Undefined for a boat, a plane or a helicopter.
3715
+ */
3716
+ declare const fleetWheelLayout: (id: string) => FleetWheelLayout | undefined;
3717
+
3689
3718
  /** `[hex, weight]` pairs: a weighted colour table. */
3690
3719
  type PaintPalette = ReadonlyArray<readonly [string, number]>;
3691
3720
  /** The two palettes of the team: realistic civilian colours (13) and military greens and sands (5). Data in `data/paint.json`. */
@@ -3731,8 +3760,11 @@ declare const fleetStats: (id: FleetVehicleId | string) => FleetStats | undefine
3731
3760
  /** The design card in Brazilian Portuguese; other languages are not translated yet. */
3732
3761
  declare const fleetCard: (id: FleetVehicleId | string) => FleetCard | undefined;
3733
3762
 
3763
+ type VehicleType = NonNullable<ProvingSubject['body']['type']>;
3734
3764
  /** Fleet vehicles that drive all their wheels (the cards say it; the stats file does not carry it). */
3735
3765
  declare const FLEET_FOUR_WHEEL_DRIVE: readonly string[];
3766
+ /** The type a fleet model is built as. */
3767
+ declare const fleetVehicleTypeOf: (id: string) => VehicleType;
3736
3768
  /** The fleet group of a vehicle id. */
3737
3769
  declare const fleetGroupOf: (id: string) => string | undefined;
3738
3770
  /**
@@ -3741,7 +3773,18 @@ declare const fleetGroupOf: (id: string) => string | undefined;
3741
3773
  */
3742
3774
  declare function fleetProvingSubject(id: string, options?: Partial<Pick<VehicleCardData, 'mass' | 'wheelbase' | 'track' | 'fourWheelDrive'>>): ProvingSubject | null;
3743
3775
 
3776
+ /**
3777
+ * 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
+ * `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.
3779
+ * `seconds: null` is "no source" ("sem fonte"): no verified figure for that exact model, so the earlier rating stays. Motorcycles, heavy, military, bicycle, tractor and the pickups and vans are not in this review.
3780
+ */
3781
+ interface AccelerationSource {
3782
+ readonly seconds: number | null;
3783
+ readonly source: string;
3784
+ }
3785
+ declare const FLEET_ACCELERATION_SOURCES: Readonly<Record<string, AccelerationSource>>;
3786
+
3744
3787
  /** Returns the R6 cabin clearance category for a fleet vehicle id (Spec 012 R6). */
3745
3788
  declare function fleetCabinCategoryOf(id: FleetVehicleId): CabinCategory;
3746
3789
 
3747
- export { FLEET_FOUR_WHEEL_DRIVE, type FleetCard, type FleetContext, type FleetDims, type FleetFuel, type FleetGroupId, type FleetLabel, type FleetOptions, type FleetScenarioId, type FleetShared, type FleetStats, type FleetVehicleId, type PaintPalette, agricultural, air, allFleetDims, cars, colorFromSeed, createFleetPack, createScenarios, en as enLocale, fleetCabinCategoryOf, fleetCard, fleetDims, fleetGroupIds, fleetGroupOf, fleetGroups, fleetPack, fleetProvingSubject, fleetStats, fleetVehicleIds, heavy, installFleet, legacyGlassLabels, legacyScenarioSeeds, legacyVehicleSeeds, legacyZoneIds, military, motorcycles, paintPalettes, paletteOf, pickups, ptBR as ptBrLocale, scenarioIds, suvs, vans, version, water };
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 };