UNPKG

node-insim

Version:

An InSim library for NodeJS with TypeScript support

25 lines (24 loc) 822 B
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 = 40; 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; /** Looping time stamp (hundredths - time since reset - like {@link TINY_GTH}) */ Time: number; /** Contact object - car A */ A: CarContact; /** Contact object - car B */ B: CarContact; }