UNPKG

node-insim

Version:

An InSim library for NodeJS with TypeScript support

29 lines (28 loc) 860 B
import { Packet } from './base'; import { PacketType } from './enums'; /** * Admin Command Report - a user typed an admin command - variable size */ export declare class IS_ACR extends Packet { private static readonly FIXED_DATA_SIZE; /** 12, 16, 20... 72 depending on Text */ readonly Size = 12; readonly Type = PacketType.ISP_ACR; readonly ReqI = 0; readonly Zero = 0; /** Connection's unique id (0 = host) */ UCID: number; /** Set if user is an admin */ Admin: 0 | 1; /** 1 - processed / 2 - rejected / 3 - unknown command */ Result: AdminCommandResult | 0; Sp3: number; /** 4, 8, 12... 64 characters - last byte is zero */ Text: string; unpack(buffer: Uint8Array<ArrayBuffer>): this; } export declare enum AdminCommandResult { PROCESSED = 1, REJECTED = 2, UNKNOWN_COMMAND = 3 }