UNPKG

node-insim

Version:

An InSim library for NodeJS with TypeScript support

28 lines (27 loc) 934 B
import { SendablePacket } from './base'; import { PacketType } from './enums'; import type { PacketDataWithOptionalReqI } from './types'; /** * Relay select - packet to select a host, so relay starts sending you data. */ export declare class IR_SEL extends SendablePacket { SIZE_MULTIPLIER: number; readonly Size = 68; readonly Type = PacketType.IRP_SEL; /** If non-zero Relay will reply with an {@link IS_VER} packet */ ReqI: number; readonly Zero = 0; /** Hostname to receive data from - may be colour code stripped */ HName: string; /** Admin password (to gain admin access to host) */ Admin: string; /** Spectator password (if host requires it) */ Spec: string; constructor(data?: IR_SEL_Data); } export type IR_SEL_Data = PacketDataWithOptionalReqI<IR_SEL>; export declare enum IR_SEL_ReqI { ZERO = 0, /** Send back an {@link IS_VER} packet */ SEND_VERSION = 1 }