UNPKG

node-insim

Version:

An InSim library for NodeJS with TypeScript support

24 lines (23 loc) 803 B
import { SendablePacket } from './base'; import { PacketType } from './enums'; import type { CarHCP } from './structs'; import type { PacketData } from './types'; /** * HandiCaPs * * You can send a packet to add mass and restrict the intake on each car model. * The same restriction applies to all drivers using a particular car model. * This can be useful for creating multi class hosts. */ export declare class IS_HCP extends SendablePacket { private static MAX_CARS; readonly Size = 68; readonly Type = PacketType.ISP_HCP; readonly ReqI = 0; readonly Zero = 0; /** H_Mass and H_TRes for each car: XF GTI = 0 / XR GT = 1 etc. */ Info: CarHCP[]; constructor(data?: IS_HCP_Data); pack(): Uint8Array<ArrayBuffer>; } export type IS_HCP_Data = PacketData<IS_HCP>;