import { Packet } from './base'; import type { TyreCompound } from './enums'; import { PacketType } from './enums'; import type { PassengerFlags } from './IS_NPL'; import { CarConfiguration } from './IS_NPL'; /** * SETup * * Set the {@link ISF_SET} flag in the {@link IS_ISI} to receive setups when a guest * sends their setup. * * `Setup` is nearly the same as the body of a `.set` file, minus its 12-byte header. Known * differences: * - Gear ratio order: in a `.set` file the 7th gear is followed by the final drive ratio * and then the other 6 gears, whereas here all 7 gears are followed by the final drive * ratio ({@link GRatio1}..{@link GRatio7} then {@link GFinalRatio}). */ export declare class IS_SET extends Packet { readonly Size = 136; readonly Type = PacketType.ISP_SET; readonly ReqI = 0; PLID: number; /** Skin prefix */ CName: string; readonly Spare = 0; /** Fuel load at start (%) */ FuelLoad: number; readonly Sp1 = 0; readonly Sp2 = 0; readonly Sp3 = 0; /** Setup flags */ SetF: SetupFlags | 0; readonly Sp4 = 0; /** Added mass position (%) */ H_MBal: number; /** Tyre manufacturer */ TyreMfr: TyreManufacturer; /** Maximum brake force per wheel (Nm) */ BrakePerWheel: number; /** Rear wing angle (degrees) */ BWingRear: number; /** Front wing angle (degrees) */ BWingFront: number; /** 0 to 200 - added mass (kg) */ H_Mass: number; /** 0 to 50 - intake restriction (%) */ H_TRes: number; /** Maximum steering lock (degrees) */ MaxSteer: number; /** Parallel steer (%) */ Parallel: number; /** Brake balance (%) */ BBal: number; /** Engine brake reduction (%) */ AntiEngineBrake: number; /** Centre differential type */ CDiffType: CentreDifferential; /** Centre differential viscous torque (Nm/rad) */ CDiffDDamp: number; readonly CDiffK2 = 0; /** Centre differential torque split */ CDiffSplit: number; /** 1st gear ratio, 0 to 65534 = 0.5 to 7.5 */ GRatio1: number; /** 2nd gear ratio, 0 to 65534 = 0.5 to 7.5 */ GRatio2: number; /** 3rd gear ratio, 0 to 65534 = 0.5 to 7.5 */ GRatio3: number; /** 4th gear ratio, 0 to 65534 = 0.5 to 7.5 */ GRatio4: number; /** 5th gear ratio, 0 to 65534 = 0.5 to 7.5 */ GRatio5: number; /** 6th gear ratio, 0 to 65534 = 0.5 to 7.5 */ GRatio6: number; /** 7th gear ratio, 0 to 65534 = 0.5 to 7.5 */ GRatio7: number; /** Final drive ratio, 0 to 65534 = 0.5 to 7.5 */ GFinalRatio: number; /** Passenger flags */ Passengers: PassengerFlags | 0; /** * Configuration * * - UF1 / LX4 / LX6: 0 = DEFAULT / 1 = OPEN ROOF * - GTR racing cars: 0 = DEFAULT / 1 = ALTERNATE */ Config: CarConfiguration; /** TC slip (%) */ TC: number; /** TC minimum speed (m/s) */ TCLow: number; /** Rear ride height reduction */ RRideHeight: number; /** Rear spring stiffness - raw value, N/mm = raw / 1000 */ RSpring: number; /** Rear bump damping - raw value, Ns/mm = raw / 1000 */ RBump: number; /** Rear rebound damping - raw value, Ns/mm = raw / 1000 */ RRebound: number; /** Rear anti-roll bar stiffness - raw value, N/mm = raw / 1000 */ RARB: number; /** Maximum per-wheel handbrake torque (Nm) */ HandBrake: number; /** Rear toe in - raw value, degrees = -0.9 + 0.1 * raw */ RToe: number; /** Rear caster - raw value, degrees = raw / 10 */ RCaster: number; /** Rear tyre compound */ RTyreCompound: Exclude; /** Rear tyre warmer temperature (for hotlaps) */ RTyreWarmer: number; /** Rear left tyre camber - raw value, degrees = -4.5 + 0.1 * raw */ RTyreCamberLeft: number; /** Rear right tyre camber - raw value, degrees = -4.5 + 0.1 * raw */ RTyreCamberRight: number; /** Rear tyre width reduction, for GTR class alternate configuration - see {@link IS_NPL.RWAdj} */ RTyreWidth: number; /** Rear differential preload (multiply by 10) */ RDiffPreload: number; /** Rear differential type */ RDiffType: Differential; /** Rear differential viscous torque (Nm/rad) */ RDiffDDamp: number; /** Rear differential lock (power) */ RDiffLockPower: number; /** Rear differential lock (coast) */ RDiffLockCoast: number; /** Rear left tyre pressure (kPa) */ RTyrePressLeft: number; /** Rear right tyre pressure (kPa) */ RTyrePressRight: number; /** Front ride height reduction */ FRideHeight: number; /** Front spring stiffness - raw value, N/mm = raw / 1000 */ FSpring: number; /** Front bump damping - raw value, Ns/mm = raw / 1000 */ FBump: number; /** Front rebound damping - raw value, Ns/mm = raw / 1000 */ FRebound: number; /** Front anti-roll bar stiffness - raw value, N/mm = raw / 1000 */ FARB: number; readonly Sp5 = 0; /** Front toe in - raw value, degrees = -0.9 + 0.1 * raw */ FToe: number; /** Front caster - raw value, degrees = raw / 10 */ FCaster: number; /** Front tyre compound */ FTyreCompound: Exclude; /** Front tyre warmer temperature (for hotlaps) */ FTyreWarmer: number; /** Front left tyre camber - raw value, degrees = -4.5 + 0.1 * raw */ FTyreCamberLeft: number; /** Front right tyre camber - raw value, degrees = -4.5 + 0.1 * raw */ FTyreCamberRight: number; /** Front tyre width reduction, for GTR class alternate configuration - see {@link IS_NPL.FWAdj} */ FTyreWidth: number; /** Front differential preload (multiply by 10) */ FDiffPreload: number; /** Front differential type */ FDiffType: Differential; /** Front differential viscous torque (Nm/rad) */ FDiffDDamp: number; /** Front differential lock (power) */ FDiffLockPower: number; /** Front differential lock (coast) */ FDiffLockCoast: number; /** Front left tyre pressure (kPa) */ FTyrePressLeft: number; /** Front right tyre pressure (kPa) */ FTyrePressRight: number; } export declare enum SetupFlags { /** Symmetrical wheels */ SETF_SYMM_WHEELS = 1, /** Traction control enabled */ SETF_TC_ENABLE = 2, /** Anti-lock brakes enabled */ SETF_ABS_ENABLE = 4, /** * If set, the setup has been saved with LFS version X or newer * used for pre-load handling */ PATCH_X_SETUP_OR_NEWER = 128 } export declare enum TyreManufacturer { CROMO_PLAIN = 0, CROMO = 1, TORRO = 2, MICHELIN = 3, EVOSTAR = 4, BRIDGESTONE = 5, AVON = 6 } export declare enum Differential { OPEN_DIFF = 0, LOCKED_DIFF = 1, VISCOUS_LSD = 2, CLUTCH_PACK_LSD = 3 } export declare enum CentreDifferential { OPEN_DIFF = 0, VISCOUS_LSD = 1 }