@gwigz/homunculus-core
Version:
A third-party framework for interacting with Linden Lab's virtual world "Second Life"
44 lines (43 loc) • 1.34 kB
TypeScript
/**
* ObjectUpdateCached 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 { U16, U32, U64 } from "../types";
import { type PacketMetadata } from "./packet";
export interface ObjectUpdateCachedData {
regionData?: {
regionHandle: number | bigint;
timeDilation: number;
};
objectData?: {
id: number;
crc: number;
updateFlags: number;
}[];
}
export declare const objectUpdateCachedMetadata: {
id: number;
name: string;
trusted: true;
blocks: ({
name: string;
parameters: ([string, typeof U16] | [string, typeof U64])[];
multiple?: undefined;
} | {
name: string;
parameters: [string, typeof U32][];
multiple: true;
})[];
};
export declare const objectUpdateCached: (data: ObjectUpdateCachedData, reliable?: boolean) => {
data: ObjectUpdateCachedData;
reliable: boolean | undefined;
metadata: PacketMetadata;
};
export declare const createObjectUpdateCachedDelegate: (config: Omit<import("..").DelegateConfig<ObjectUpdateCachedData>, "metadata">) => void;