- 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
32 lines
1.3 KiB
TypeScript
32 lines
1.3 KiB
TypeScript
/// <reference types="node" />
|
|
import { Circuit } from './Circuit';
|
|
import { Agent } from './Agent';
|
|
import { UUID } from './UUID';
|
|
import { ClientEvents } from './ClientEvents';
|
|
import { IObjectStore } from './interfaces/IObjectStore';
|
|
import { GameObjectLite } from './GameObjectLite';
|
|
import { NameValue } from './NameValue';
|
|
import { BotOptionFlags } from '..';
|
|
import { IGameObject } from './interfaces/IGameObject';
|
|
import { GameObjectFull } from './GameObjectFull';
|
|
export declare class ObjectStoreLite implements IObjectStore {
|
|
private circuit;
|
|
private agent;
|
|
private objects;
|
|
private objectsByUUID;
|
|
private objectsByParent;
|
|
private clientEvents;
|
|
private options;
|
|
constructor(circuit: Circuit, agent: Agent, clientEvents: ClientEvents, options: BotOptionFlags);
|
|
deleteObject(objectID: number): void;
|
|
readExtraParams(buf: Buffer, pos: number, o: GameObjectLite): number;
|
|
getObjectsByParent(parentID: number): GameObjectLite[];
|
|
parseNameValues(str: string): {
|
|
[key: string]: NameValue;
|
|
};
|
|
shutdown(): void;
|
|
getObjectsInArea(minX: number, maxX: number, minY: number, maxY: number, minZ: number, maxZ: number): GameObjectFull[];
|
|
getObjectByUUID(fullID: UUID | string): IGameObject;
|
|
getObjectByLocalID(localID: number): IGameObject;
|
|
}
|