node-insim
Version:
An InSim library for NodeJS with TypeScript support
74 lines (73 loc) • 1.99 kB
TypeScript
import { Packet } from './base';
import type { PlayerFlags } from './enums';
import { PacketType, PenaltyValue, TyreCompound } from './enums';
/**
* PIT stop (stop at pit garage)
*/
export declare class IS_PIT extends Packet {
readonly Size = 24;
readonly Type = PacketType.ISP_PIT;
readonly ReqI = 0;
/** Player's unique id */
PLID: number;
/** Laps completed */
LapsDone: number;
/** Player flags */
Flags: PlayerFlags | 0;
/** /showfuel yes: fuel added percent / no: 255 */
FuelAdd: number;
/** Current penalty value */
Penalty: PenaltyValue;
/** Number of pit stops */
NumStops: number;
private readonly Sp3;
/** Rear left tyre compound */
TyreRL: TyreCompound;
/** Rear right tyre compound */
TyreRR: TyreCompound;
/** Front left tyre compound */
TyreFL: TyreCompound;
/** Front right tyre compound */
TyreFR: TyreCompound;
/** Pit work */
Work: PitWorkFlags | 0;
private readonly Spare;
}
export declare enum PitWorkFlags {
/** No work done */
PSE_NOTHING = 1,
/** Stopped at pit box */
PSE_STOP = 2,
/** Front damage */
PSE_FR_DAM = 4,
/** Front wheels change */
PSE_FR_WHL = 8,
/** Left front damage */
PSE_LE_FR_DAM = 16,
/** Left front wheel change */
PSE_LE_FR_WHL = 32,
/** Right front damage */
PSE_RI_FR_DAM = 64,
/** Right front wheel change */
PSE_RI_FR_WHL = 128,
/** Rear damage */
PSE_RE_DAM = 256,
/** Rear wheels change */
PSE_RE_WHL = 512,
/** Left rear damage */
PSE_LE_RE_DAM = 1024,
/** Left rear wheel change */
PSE_LE_RE_WHL = 2048,
/** Right rear damage */
PSE_RI_RE_DAM = 4096,
/** Right rear wheel change */
PSE_RI_RE_WHL = 8192,
/** Minor body damage */
PSE_BODY_MINOR = 16384,
/** Major body damage */
PSE_BODY_MAJOR = 32768,
/** Setup adjustments */
PSE_SETUP = 65536,
/** Refuel */
PSE_REFUEL = 131072
}