@gwigz/homunculus-core
Version:
A third-party framework for interacting with Linden Lab's virtual world "Second Life"
56 lines (55 loc) • 1.68 kB
TypeScript
/**
* ScriptDialog 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 { S32, UUID, Variable1, Variable2 } from "../types";
import { type PacketMetadata } from "./packet";
export interface ScriptDialogData {
data?: {
objectId: string;
firstName: string | Buffer;
lastName: string | Buffer;
objectName: string | Buffer;
message: string | Buffer;
chatChannel: number;
imageId: string;
};
buttons?: {
buttonLabel: string | Buffer;
}[];
ownerData?: {
ownerId: string;
}[];
}
export declare const scriptDialogMetadata: {
id: number;
name: string;
frequency: 2;
trusted: true;
compression: true;
blocks: ({
name: string;
parameters: ([string, typeof UUID] | [string, typeof Variable1] | [string, typeof S32] | [string, typeof Variable2])[];
multiple?: undefined;
} | {
name: string;
parameters: [string, typeof Variable1][];
multiple: true;
} | {
name: string;
parameters: [string, typeof UUID][];
multiple: true;
})[];
};
export declare const scriptDialog: (data: ScriptDialogData, reliable?: boolean) => {
data: ScriptDialogData;
reliable: boolean | undefined;
metadata: PacketMetadata;
};
export declare const createScriptDialogDelegate: (config: Omit<import("..").DelegateConfig<ScriptDialogData>, "metadata">) => void;