node-insim
Version:
An InSim library for NodeJS with TypeScript support
26 lines (25 loc) • 789 B
TypeScript
import { Packet } from './base';
import { PacketType } from './enums';
import { CarContact } from './structs';
/**
* CONtact - between two cars (A and B are sorted by PLID)
*
* This packet reports contacts between two cars if the closing speed is above 0.25 m/s.
*
* Set the {@link ISF_CON} flag in the {@link IS_ISI} to receive car contact reports.
*/
export declare class IS_CON extends Packet {
readonly Size = 44;
readonly Type = PacketType.ISP_CON;
readonly ReqI = 0;
readonly Zero = 0;
/** High 4 bits: reserved / low 12 bits: closing speed (10 = 1 m/s) */
SpClose: number;
private readonly SpW;
/** Time stamp (ms) */
Time: number;
/** Contact object - car A */
A: CarContact;
/** Contact object - car B */
B: CarContact;
}