node-insim
Version:
An InSim library for NodeJS with TypeScript support
20 lines (19 loc) • 683 B
TypeScript
import { Packet } from './base';
import { PacketType } from './enums';
import { CompCar } from './structs';
/**
* Multi Car Info - if more than {@link MCI_MAX_CARS} in race then more than one is sent
*/
export declare class IS_MCI extends Packet {
/** 4 + NumC * 28 */
readonly Size = 4;
readonly Type = PacketType.ISP_MCI;
/** 0 unless this is a reply to an {@link TINY_MCI} request */
ReqI: number;
/** Number of valid CompCar structs in this packet */
NumC: number;
/** Car info for each player, 1 to {@link MCI_MAX_CARS} (NumC) */
Info: CompCar[];
unpack(buffer: Uint8Array<ArrayBuffer>): this;
}
export declare const MCI_MAX_CARS = 16;