node-insim
Version:
An InSim library for NodeJS with TypeScript support
28 lines (27 loc) • 733 B
TypeScript
import { Packet } from './base';
import { PacketType } from './enums';
import { CarContOBJ } from './structs';
/**
* Car State Changed - reports a change in a car's state (currently start or stop)
*/
export declare class IS_CSC extends Packet {
readonly Size = 20;
readonly Type = PacketType.ISP_CSC;
readonly ReqI = 0;
/** Player's unique id */
PLID: number;
private readonly Sp0;
CSCAction: CSCAction;
private readonly Sp2;
private readonly Sp3;
/** Milliseconds since start (as in {@link SMALL_RTP}) */
Time: number;
/** Car contact object */
C: CarContOBJ;
}
export declare enum CSCAction {
/** Car stopped */
CSC_STOP = 0,
/** Car started */
CSC_START = 1
}