UNPKG

@gwigz/homunculus-core

Version:

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

44 lines (43 loc) 1.41 kB
/** * AgentUpdate 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 { F32, Quaternion, UUID, Vector3 } from "../types"; import { type PacketMetadata } from "./packet"; export interface AgentUpdateData { agentData: { agentId?: string; sessionId?: string; bodyRotation: Quaternion; headRotation: Quaternion; state: number; cameraCenter: Vector3; cameraAtAxis: Vector3; cameraLeftAxis: Vector3; cameraUpAxis: Vector3; far: number; controlFlags: number; flags?: number; }; } export declare const agentUpdateMetadata: { id: number; name: string; compression: true; blocks: { name: string; parameters: ([string, typeof UUID] | [string, typeof Vector3] | [string, typeof Quaternion] | [string, typeof F32])[]; }[]; }; export declare const agentUpdate: (data: AgentUpdateData, reliable?: boolean) => { data: AgentUpdateData; reliable: boolean | undefined; metadata: PacketMetadata; }; export declare const createAgentUpdateDelegate: (config: Omit<import("..").DelegateConfig<AgentUpdateData>, "metadata">) => void;