@gwigz/homunculus-core
Version:
A third-party framework for interacting with Linden Lab's virtual world "Second Life"
40 lines (39 loc) • 1.33 kB
TypeScript
/**
* RequestXfer 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, S16, U8, U64, UUID, Variable1 } from "../types";
import { type PacketMetadata } from "./packet";
export interface RequestXferData {
xferId?: {
id: number | bigint;
filename: string | Buffer;
filePath: number;
deleteOnCompletion: boolean;
useBigPackets: boolean;
vFileId: string;
vFileType: number;
};
}
export declare const requestXferMetadata: {
id: number;
name: string;
frequency: 2;
compression: true;
blocks: {
name: string;
parameters: ([string, typeof U8] | [string, typeof UUID] | [string, typeof Variable1] | [string, typeof Bool] | [string, typeof U64] | [string, typeof S16])[];
}[];
};
export declare const requestXfer: (data: RequestXferData, reliable?: boolean) => {
data: RequestXferData;
reliable: boolean | undefined;
metadata: PacketMetadata;
};
export declare const createRequestXferDelegate: (config: Omit<import("..").DelegateConfig<RequestXferData>, "metadata">) => void;