2018-10-07 14:59:07 +01:00
|
|
|
import { LoginResponse } from './classes/LoginResponse';
|
2017-12-13 15:23:50 +00:00
|
|
|
import { LoginParameters } from './classes/LoginParameters';
|
2017-12-13 19:55:08 +00:00
|
|
|
import { Region } from './classes/Region';
|
|
|
|
|
import { ClientEvents } from './classes/ClientEvents';
|
|
|
|
|
import { ClientCommands } from './classes/ClientCommands';
|
2017-12-14 02:06:28 +00:00
|
|
|
import { BotOptionFlags } from './enums/BotOptionFlags';
|
2018-10-12 14:34:43 +01:00
|
|
|
import { UUID } from './classes/UUID';
|
2018-10-09 20:03:28 +01:00
|
|
|
import { Vector3 } from './classes/Vector3';
|
2017-12-13 15:23:50 +00:00
|
|
|
export declare class Bot {
|
|
|
|
|
private loginParams;
|
|
|
|
|
private currentRegion;
|
|
|
|
|
private agent;
|
2017-12-13 19:55:08 +00:00
|
|
|
private ping;
|
|
|
|
|
private pingNumber;
|
|
|
|
|
private lastSuccessfulPing;
|
2017-12-14 01:21:18 +00:00
|
|
|
private circuitSubscription;
|
2017-12-14 02:06:28 +00:00
|
|
|
private options;
|
2018-10-07 17:06:54 +01:00
|
|
|
private eventQueueRunning;
|
2017-12-14 01:21:18 +00:00
|
|
|
clientEvents: ClientEvents;
|
2017-12-13 19:55:08 +00:00
|
|
|
clientCommands: ClientCommands;
|
2018-10-07 17:06:54 +01:00
|
|
|
private eventQueueWaits;
|
2018-10-09 20:03:28 +01:00
|
|
|
private stay;
|
|
|
|
|
private stayRegion;
|
|
|
|
|
private stayPosition;
|
2017-12-14 02:06:28 +00:00
|
|
|
constructor(login: LoginParameters, options: BotOptionFlags);
|
2018-10-09 20:03:28 +01:00
|
|
|
stayPut(stay: boolean, regionName?: string, position?: Vector3): void;
|
2018-10-07 14:59:07 +01:00
|
|
|
login(): Promise<LoginResponse>;
|
2018-10-09 20:03:28 +01:00
|
|
|
changeRegion(region: Region, requested: boolean): Promise<void>;
|
2018-10-07 17:06:54 +01:00
|
|
|
waitForEventQueue(timeout?: number): Promise<void>;
|
2018-10-07 14:59:07 +01:00
|
|
|
private closeCircuit;
|
|
|
|
|
private kicked;
|
|
|
|
|
private disconnected;
|
|
|
|
|
close(): Promise<void>;
|
2018-10-12 14:34:43 +01:00
|
|
|
agentID(): UUID;
|
2018-10-09 20:03:28 +01:00
|
|
|
connectToSim(requested: boolean): Promise<void>;
|
2017-12-13 15:23:50 +00:00
|
|
|
}
|