@gwigz/homunculus-core
Version:
A third-party framework for interacting with Linden Lab's virtual world "Second Life"
41 lines (40 loc) • 1.27 kB
TypeScript
/**
* NeighborList 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, U8, Variable1 } from "../types";
import { type PacketMetadata } from "./packet";
export interface NeighborListData {
neighborBlock?: {
ip: IP;
port: Port;
publicIp: IP;
publicPort: Port;
regionId: string;
name: string | Buffer;
simAccess: number;
}[];
}
export declare const neighborListMetadata: {
id: number;
name: string;
trusted: true;
blocks: {
name: string;
parameters: ([string, typeof U8] | [string, typeof Variable1] | [string, typeof IP] | [string, typeof Port])[];
multiple: true;
size: number;
}[];
};
export declare const neighborList: (data: NeighborListData, reliable?: boolean) => {
data: NeighborListData;
reliable: boolean | undefined;
metadata: PacketMetadata;
};
export declare const createNeighborListDelegate: (config: Omit<import("..").DelegateConfig<NeighborListData>, "metadata">) => void;