UNPKG

node-insim

Version:

An InSim library for NodeJS with TypeScript support

42 lines (41 loc) 993 B
import { Packet } from './base'; import { PacketType } from './enums'; /** * ConN Leave */ export declare class IS_CNL extends Packet { readonly Size = 8; readonly Type = PacketType.ISP_CNL; /** 0 */ readonly ReqI = 0; /** Unique id of the connection which left */ UCID: number; /** Leave reason (see below) */ Reason: LeaveReason; /** Number of connections including host */ Total: number; private readonly Sp2; private readonly Sp3; } export declare enum LeaveReason { /** None */ LEAVR_DISCO = 0, /** Timed out */ LEAVR_TIMEOUT = 1, /** Lost connection */ LEAVR_LOSTCONN = 2, /** Kicked */ LEAVR_KICKED = 3, /** Banned */ LEAVR_BANNED = 4, /** Security */ LEAVR_SECURITY = 5, /** Cheat protection warning */ LEAVR_CPW = 6, /** Out of sync with host */ LEAVR_OOS = 7, /** Join OOS (initial sync failed) */ LEAVR_JOOS = 8, /** Invalid packet */ LEAVR_HACK = 9 }