@gwigz/homunculus-core
Version:
A third-party framework for interacting with Linden Lab's virtual world "Second Life"
36 lines (35 loc) • 1.16 kB
TypeScript
/**
* TransferPacket 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 { S32, UUID, Variable2 } from "../types";
import { type PacketMetadata } from "./packet";
export interface TransferPacketData {
transferData?: {
transferId: string;
channelType: number;
packet: number;
status: number;
data: string | Buffer;
};
}
export declare const transferPacketMetadata: {
id: number;
name: string;
blocks: {
name: string;
parameters: ([string, typeof UUID] | [string, typeof S32] | [string, typeof Variable2])[];
}[];
};
export declare const transferPacket: (data: TransferPacketData, reliable?: boolean) => {
data: TransferPacketData;
reliable: boolean | undefined;
metadata: PacketMetadata;
};
export declare const createTransferPacketDelegate: (config: Omit<import("..").DelegateConfig<TransferPacketData>, "metadata">) => void;