@gwigz/homunculus-core
Version:
A third-party framework for interacting with Linden Lab's virtual world "Second Life"
49 lines (48 loc) • 1.69 kB
TypeScript
/**
* ImprovedInstantMessage Packet
*
* This file is used to help our packet serialization and deserialization
* process, and to create new packets on the fly.
*
* ⚠️ Do not edit this file manually, it is generated by the `codegen` script!
*
* @see {@link http://wiki.secondlife.com/wiki/Message_Layout}
*/
import { Bool, U8, U32, UUID, Variable1, Variable2, Vector3 } from "../types";
import { type PacketMetadata } from "./packet";
export interface ImprovedInstantMessageData {
agentData?: {
agentId?: string;
sessionId?: string;
};
messageBlock?: {
fromGroup: boolean;
toAgentId: string;
parentEstateId: number;
regionId: string;
position: Vector3;
offline: number;
dialog: number;
id: string;
timestamp: number;
fromAgentName: string | Buffer;
message: string | Buffer;
binaryBucket: string | Buffer;
};
}
export declare const improvedInstantMessageMetadata: {
id: number;
name: string;
frequency: 2;
compression: true;
blocks: {
name: string;
parameters: ([string, typeof U32] | [string, typeof U8] | [string, typeof UUID] | [string, typeof Vector3] | [string, typeof Variable1] | [string, typeof Bool] | [string, typeof Variable2])[];
}[];
};
export declare const improvedInstantMessage: (data: ImprovedInstantMessageData, reliable?: boolean) => {
data: ImprovedInstantMessageData;
reliable: boolean | undefined;
metadata: PacketMetadata;
};
export declare const createImprovedInstantMessageDelegate: (config: Omit<import("..").DelegateConfig<ImprovedInstantMessageData>, "metadata">) => void;