UNPKG

node-insim

Version:

An InSim library for NodeJS with TypeScript support

27 lines (26 loc) 861 B
import { SendablePacket } from './base'; import type { CarFlags } from './enums'; import { PacketType } from './enums'; import type { PacketData } from './types'; /** * PLayer Cars * * You can send a packet to limit the cars that can be used by a given connection. * The resulting set of selectable cars is a subset of the cars set to be available * on the host (by the /cars command or {@link SMALL_ALC}). */ export declare class IS_PLC extends SendablePacket { readonly Size = 12; readonly Type = PacketType.ISP_PLC; readonly ReqI = 0; readonly Zero = 0; /** Connection's unique id (0 = host / 255 = all) */ UCID: number; private readonly Sp1; private readonly Sp2; private readonly Sp3; /** Allowed cars */ Cars: CarFlags; constructor(data?: IS_PLC_Data); } export type IS_PLC_Data = PacketData<IS_PLC>;