UNPKG

node-insim

Version:

An InSim library for NodeJS with TypeScript support

29 lines (28 loc) 687 B
import { Packet } from './base'; import { PacketType } from './enums'; /** * New ConN */ export declare class IS_NCN extends Packet { readonly Size = 56; readonly Type = PacketType.ISP_NCN; /** 0 unless this is a reply to a {@link TINY_NCN} */ ReqI: number; /** New connection's unique id (0 = host) */ UCID: number; /** Username */ UName: string; /** Nickname */ PName: string; /** 1 if admin */ Admin: number; /** Number of connections including host */ Total: number; /** Bit 2: remote */ Flags: ConnectionFlags | 0; private readonly Sp3; } export declare enum ConnectionFlags { /** Remote */ REMOTE = 4 }