UNPKG

@gwigz/homunculus-core

Version:

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

52 lines (51 loc) 1.46 kB
/** * CoarseLocationUpdate 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 { S16, U8, UUID } from "../types"; import { type PacketMetadata } from "./packet"; export interface CoarseLocationUpdateData { location?: { x: number; y: number; z: number; }[]; index?: { you: number; prey: number; }; agentData?: { agentId?: string; }[]; } export declare const coarseLocationUpdateMetadata: { id: number; name: string; frequency: 1; trusted: true; blocks: ({ name: string; parameters: [string, typeof U8][]; multiple: true; } | { name: string; parameters: [string, typeof S16][]; multiple?: undefined; } | { name: string; parameters: [string, typeof UUID][]; multiple: true; })[]; }; export declare const coarseLocationUpdate: (data: CoarseLocationUpdateData, reliable?: boolean) => { data: CoarseLocationUpdateData; reliable: boolean | undefined; metadata: PacketMetadata; }; export declare const createCoarseLocationUpdateDelegate: (config: Omit<import("..").DelegateConfig<CoarseLocationUpdateData>, "metadata">) => void;