node-insim
Version:
An InSim library for NodeJS with TypeScript support
35 lines (34 loc) • 1.02 kB
TypeScript
import { Packet } from './base';
import { PacketType } from './enums';
import { CarContOBJ } from './structs';
/**
* Hot Lap Validity - off track / hit wall / speeding in pits / out of bounds
*
* Set the {@link ISF_HLV} flag in the {@link IS_ISI} to receive reports of incidents that would violate HLVC.
*/
export declare class IS_HLV extends Packet {
readonly Size = 16;
readonly Type = PacketType.ISP_HLV;
readonly ReqI = 0;
/** Player's unique id */
PLID: number;
/** 0: ground / 1: wall / 4: speeding / 5: out of bounds */
HLVC: HLVCViolation;
private readonly Sp1;
private readonly SpW;
/** Time stamp (ms) */
Time: number;
/** Car contact object */
C: CarContOBJ;
unpack(buffer: Uint8Array<ArrayBuffer>): this;
}
export declare enum HLVCViolation {
/** Car drove off track */
GROUND = 0,
/** Car hit a wall */
WALL = 1,
/** Car was speeding in pit lane */
SPEEDING = 4,
/** Car went out of bounds */
OUT_OF_BOUNDS = 5
}