UNPKG

@gwigz/homunculus-core

Version:

A third-party framework for interacting with Linden Lab's virtual world "Second Life"

40 lines (39 loc) 1.17 kB
/** * ImagePacket 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 { U16, UUID, Variable2 } from "../types"; import { type PacketMetadata } from "./packet"; export interface ImagePacketData { imageId?: { id: string; packet: number; }; imageData?: { data: string | Buffer; }; } export declare const imagePacketMetadata: { id: number; name: string; trusted: true; blocks: ({ name: string; parameters: ([string, typeof UUID] | [string, typeof U16])[]; } | { name: string; parameters: [string, typeof Variable2][]; })[]; }; export declare const imagePacket: (data: ImagePacketData, reliable?: boolean) => { data: ImagePacketData; reliable: boolean | undefined; metadata: PacketMetadata; }; export declare const createImagePacketDelegate: (config: Omit<import("..").DelegateConfig<ImagePacketData>, "metadata">) => void;