node-insim
Version:
An InSim library for NodeJS with TypeScript support
41 lines (40 loc) • 1.21 kB
TypeScript
import type { DashLights } from '../out/DashLights';
import { OutSimMain } from '../out/OutSimMain';
import { Packet } from './base';
import { PacketType } from './enums';
import { AICGear } from './IS_AIC';
/**
* AI car info
*
* Send a {@link SMALL_AII} with UVal set to PLID to receive current information about a local car.
*/
export declare class IS_AII extends Packet {
readonly Size = 96;
readonly Type = PacketType.ISP_AII;
/** ReqI from the {@link SMALL_AII} request packet */
ReqI: number;
PLID: number;
/** Identical to {@link OutSimMain} */
OSData: OutSimMain;
Flags: AIFlags | 0;
/** Reverse: 0, Neutral: 1, First: 2... */
Gear: AICGear;
readonly Sp2 = 0;
readonly Sp3 = 0;
RPM: number;
readonly SpF0 = 0;
readonly SpF1 = 0;
/** Dash lights currently switched on (see DL_x in OutGauge section below) */
ShowLights: DashLights | 0;
readonly SPU1 = 0;
readonly SPU2 = 0;
readonly SPU3 = 0;
}
export declare enum AIFlags {
/** Detect if engine running */
AIFLAGS_IGNITION = 1,
/** Upshift lever currently held */
AIFLAGS_CHUP = 4,
/** Downshift lever currently held */
AIFLAGS_CHDN = 8
}