UNPKG

@gwigz/homunculus-core

Version:

A third-party framework for interacting with Linden Lab's virtual world "Second Life"

49 lines (48 loc) 1.56 kB
/** * UserReport 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 { U8, UUID, Variable1, Variable2, Vector3 } from "../types"; import { type PacketMetadata } from "./packet"; export interface UserReportData { agentData?: { agentId?: string; sessionId?: string; }; reportData?: { reportType: number; category: number; position: Vector3; checkFlags: number; screenshotId: string; objectId: string; abuserId: string; abuseRegionName: string | Buffer; abuseRegionId: string; summary: string | Buffer; details: string | Buffer; versionString: string | Buffer; }; } export declare const userReportMetadata: { id: number; name: string; frequency: 2; compression: true; blocks: { name: string; parameters: ([string, typeof U8] | [string, typeof UUID] | [string, typeof Vector3] | [string, typeof Variable1] | [string, typeof Variable2])[]; }[]; }; export declare const userReport: (data: UserReportData, reliable?: boolean) => { data: UserReportData; reliable: boolean | undefined; metadata: PacketMetadata; }; export declare const createUserReportDelegate: (config: Omit<import("..").DelegateConfig<UserReportData>, "metadata">) => void;