- Add a waitForEventQueue promise, to get rid of the 5 second fudge from testBot.js - Async'ify testBot.js - Complete plumbing for Hint's ScriptDialog support (see changes to ScriptDialogEvent.ts and Comms.ts - Fix: The EventQueue was pausing for 5 seconds every 30 seconds
30 lines
1.0 KiB
TypeScript
30 lines
1.0 KiB
TypeScript
import { LoginResponse } from './classes/LoginResponse';
|
|
import { LoginParameters } from './classes/LoginParameters';
|
|
import { Region } from './classes/Region';
|
|
import { ClientEvents } from './classes/ClientEvents';
|
|
import { ClientCommands } from './classes/ClientCommands';
|
|
import { BotOptionFlags } from './enums/BotOptionFlags';
|
|
export declare class Bot {
|
|
private loginParams;
|
|
private currentRegion;
|
|
private agent;
|
|
private ping;
|
|
private pingNumber;
|
|
private lastSuccessfulPing;
|
|
private circuitSubscription;
|
|
private options;
|
|
private eventQueueRunning;
|
|
clientEvents: ClientEvents;
|
|
clientCommands: ClientCommands;
|
|
private eventQueueWaits;
|
|
constructor(login: LoginParameters, options: BotOptionFlags);
|
|
login(): Promise<LoginResponse>;
|
|
changeRegion(region: Region): Promise<void>;
|
|
waitForEventQueue(timeout?: number): Promise<void>;
|
|
private closeCircuit;
|
|
private kicked;
|
|
private disconnected;
|
|
close(): Promise<void>;
|
|
connectToSim(): Promise<void>;
|
|
}
|