node-insim
Version:
An InSim library for NodeJS with TypeScript support
27 lines (26 loc) • 872 B
TypeScript
import { SendablePacket } from './base';
import type { MessageSound } from './enums';
import { PacketType } from './enums';
import type { PacketData } from './types';
/**
* Msg To Connection - hosts only - send to a connection / a player / all
*/
export declare class IS_MTC extends SendablePacket {
private static readonly FIXED_DATA_SIZE;
Size: number;
readonly Type = PacketType.ISP_MTC;
ReqI: number;
/** Sound effect */
Sound: MessageSound;
/** Connection's unique id (0 = host / 255 = all) */
UCID: number;
/** Player's unique id (if zero, use UCID) */
PLID: number;
private readonly Sp2;
private readonly Sp3;
/** Up to 128 characters of text - last byte must be zero */
Text: string;
constructor(data?: IS_MTC_Data);
pack(): Uint8Array<ArrayBuffer>;
}
export type IS_MTC_Data = PacketData<IS_MTC>;