import { Packet } from './base'; import { PacketType } from './enums'; /** * MSg Out - system messages and user messages - variable size * * NOTE: Typing "/o MESSAGE" into LFS will send an IS_MSO with {@link UserType} = {@link MSO_O} */ export declare class IS_MSO extends Packet { private static readonly FIXED_DATA_SIZE; readonly Size = 8; readonly Type = PacketType.ISP_MSO; readonly ReqI = 0; /** Bits 0-3 (MSOData & 0x0f) - code page of the message (see {@link CodePage}) */ MSOData: number; /** Connection's unique id (0 = host) */ UCID: number; /** Player's unique id (if zero, use UCID) */ PLID: number; /** Set if typed by a user (see {@link UserType}) */ UserType: UserType; /** First character of the actual text (after player name) */ TextStart: number; /** 4, 8, 12... 128 characters - last byte is zero */ Msg: string; unpack(buffer: Uint8Array): this; } export declare enum UserType { /** System message */ MSO_SYSTEM = 0, /** Normal visible user message */ MSO_USER = 1, /** hidden message starting with special prefix (see {@link IS_ISI}) */ MSO_PREFIX = 2, /** Hidden message typed on local pc with /o command */ MSO_O = 3 } /** * LFS code page letter and Windows code page identifiers used by {@link IS_MSO.MSOData} */ export declare enum CodePage { /** L - 1252 - Latin 1 */ LID_LATIN = 0, /** E - 1250 - Central European */ LID_EUROPEAN = 1, /** T - 1254 - Turkish */ LID_TURKISH = 2, /** B - 1257 - Baltic */ LID_BALTIC = 3, /** J - 932 - Japanese */ LID_JAPANESE = 4, /** C - 1251 - Cyrillic */ LID_CYRILLIC = 5, /** G - 1253 - Greek */ LID_GREEK = 6, /** H - 950 - Traditional Chinese */ LID_TRADITIONAL_CHINESE = 7, /** S - 936 - Simplified Chinese */ LID_SIMPLIFIED_CHINESE = 8, /** K - 949 - Korean */ LID_KOREAN = 9, /** Number of code pages */ LID_NUM_CP = 10 }