UNPKG

node-insim

Version:

An InSim library for NodeJS with TypeScript support

31 lines (30 loc) 1.02 kB
import { SendablePacket } from './base'; import { PacketType } from './enums'; import type { PacketData } from './types'; /** * Mods ALlowed - variable size */ export declare class IS_MAL extends SendablePacket { static readonly MAX_MODS = 120; /** 8 + NumM * 4 */ Size: number; readonly Type = PacketType.ISP_MAL; /** 0 unless this is a reply to a {@link TINY_MAL} request */ ReqI: number; /** Number of mods in this packet */ NumM: number; /** Unique id of the connection that updated the list */ UCID: number; /** Zero (for now) */ private readonly Flags; private readonly Sp2; private readonly Sp3; /** SkinID of each mod in compressed format, 0 to {@link MAX_MODS} (NumM) */ SkinID: string[]; private readonly skinIdOffset; private readonly skinIdSize; constructor(data?: IS_MAL_Data); unpack(buffer: Uint8Array<ArrayBuffer>): this; pack(): Uint8Array<ArrayBuffer>; } export type IS_MAL_Data = Pick<PacketData<IS_MAL>, 'SkinID'>;