@gwigz/homunculus-core
Version:
A third-party framework for interacting with Linden Lab's virtual world "Second Life"
44 lines (43 loc) • 1.51 kB
TypeScript
/**
* ChildAgentPositionUpdate 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, U32, U64, UUID, Vector3 } from "../types";
import { type PacketMetadata } from "./packet";
export interface ChildAgentPositionUpdateData {
agentData: {
regionHandle: number | bigint;
viewerCircuitCode: number;
agentId?: string;
sessionId?: string;
agentPos: Vector3;
agentVel: Vector3;
center: Vector3;
size: Vector3;
atAxis: Vector3;
leftAxis: Vector3;
upAxis: Vector3;
changedGrid: boolean;
};
}
export declare const childAgentPositionUpdateMetadata: {
id: number;
name: string;
trusted: true;
blocks: {
name: string;
parameters: ([string, typeof U32] | [string, typeof UUID] | [string, typeof Vector3] | [string, typeof Bool] | [string, typeof U64])[];
}[];
};
export declare const childAgentPositionUpdate: (data: ChildAgentPositionUpdateData, reliable?: boolean) => {
data: ChildAgentPositionUpdateData;
reliable: boolean | undefined;
metadata: PacketMetadata;
};
export declare const createChildAgentPositionUpdateDelegate: (config: Omit<import("..").DelegateConfig<ChildAgentPositionUpdateData>, "metadata">) => void;