- Properly decode object TextureEntry - Properly decode object ParticleSystem - Properly decode object ObjectData - Properly decode object TextColor - Properly decode Linden Tree species - Correct handling of ObjectUpdateCached (only request objects if we don't already have them) - Implement handling of ImprovedTerseObjectUpdate to complete support for R-Tree object searching - Object store interface: getObjectByUUID, getObjectByLocalID
22 lines
1.1 KiB
TypeScript
22 lines
1.1 KiB
TypeScript
/// <reference types="node" />
|
|
import * as Long from 'long';
|
|
import { GlobalPosition } from '..';
|
|
export declare class Utils {
|
|
static StringToBuffer(str: string): Buffer;
|
|
static BufferToStringSimple(buf: Buffer, startPos?: number): string;
|
|
static BufferToString(buf: Buffer, startPos?: number): {
|
|
readLength: number;
|
|
result: string;
|
|
};
|
|
static RegionCoordinatesToHandle(regionX: number, regionY: number): GlobalPosition;
|
|
static HTTPAssetTypeToInventoryType(HTTPAssetType: string): "" | "script" | "object" | "texture" | "sound" | "animation" | "gesture" | "landmark" | "callcard" | "wearable" | "notecard" | "category" | "mesh";
|
|
static ByteToFloat(byte: number, lower: number, upper: number): number;
|
|
static UInt16ToFloat(val: number, lower: number, upper: number): number;
|
|
static Base64EncodeString(str: string): string;
|
|
static Base64DecodeString(str: string): string;
|
|
static HexToLong(hex: string): Long;
|
|
static ReadRotationFloat(buf: Buffer, pos: number): number;
|
|
static ReadGlowFloat(buf: Buffer, pos: number): number;
|
|
static ReadOffsetFloat(buf: Buffer, pos: number): number;
|
|
}
|