UNPKG

@gwigz/homunculus-core

Version:

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

43 lines (42 loc) 1.43 kB
/** * SendPostcard 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, UUID, Variable1, Variable2, Vector3D } from "../types"; import { type PacketMetadata } from "./packet"; export interface SendPostcardData { agentData: { agentId?: string; sessionId?: string; assetId: string; posGlobal: Vector3D; to: string | Buffer; from: string | Buffer; name: string | Buffer; subject: string | Buffer; msg: string | Buffer; allowPublish: boolean; maturePublish: boolean; }; } export declare const sendPostcardMetadata: { id: number; name: string; frequency: 2; blocks: { name: string; parameters: ([string, typeof UUID] | [string, typeof Variable1] | [string, typeof Bool] | [string, typeof Variable2] | [string, typeof Vector3D])[]; }[]; }; export declare const sendPostcard: (data: SendPostcardData, reliable?: boolean) => { data: SendPostcardData; reliable: boolean | undefined; metadata: PacketMetadata; }; export declare const createSendPostcardDelegate: (config: Omit<import("..").DelegateConfig<SendPostcardData>, "metadata">) => void;