@gwigz/homunculus-core
Version:
A third-party framework for interacting with Linden Lab's virtual world "Second Life"
48 lines (47 loc) • 1.45 kB
TypeScript
/**
* CrossedRegion 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 { IP, Port, U64, Variable2, Vector3 } from "../types";
import { type PacketMetadata } from "./packet";
export interface CrossedRegionData {
agentData?: {
agentId?: string;
sessionId?: string;
};
regionData?: {
simIp: IP;
simPort: Port;
regionHandle: number | bigint;
seedCapability: string | Buffer;
};
info?: {
position: Vector3;
lookAt: Vector3;
};
}
export declare const crossedRegionMetadata: {
id: number;
name: string;
frequency: 1;
trusted: true;
blocks: ({
name: string;
parameters: ([string, typeof IP] | [string, typeof Port] | [string, typeof U64] | [string, typeof Variable2])[];
} | {
name: string;
parameters: [string, typeof Vector3][];
})[];
};
export declare const crossedRegion: (data: CrossedRegionData, reliable?: boolean) => {
data: CrossedRegionData;
reliable: boolean | undefined;
metadata: PacketMetadata;
};
export declare const createCrossedRegionDelegate: (config: Omit<import("..").DelegateConfig<CrossedRegionData>, "metadata">) => void;