2024-11-12 11:51:30 -07:00
|
|
|
import { BotController } from "@spt/controllers/BotController";
|
|
|
|
import { IGenerateBotsRequestData } from "@spt/models/eft/bot/IGenerateBotsRequestData";
|
|
|
|
import { IEmptyRequestData } from "@spt/models/eft/common/IEmptyRequestData";
|
|
|
|
import { IBotBase } from "@spt/models/eft/common/tables/IBotBase";
|
|
|
|
import { Difficulties } from "@spt/models/eft/common/tables/IBotType";
|
|
|
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
|
|
|
import { HttpResponseUtil } from "@spt/utils/HttpResponseUtil";
|
2023-08-17 19:49:16 -06:00
|
|
|
export declare class BotCallbacks {
|
|
|
|
protected botController: BotController;
|
|
|
|
protected httpResponse: HttpResponseUtil;
|
|
|
|
constructor(botController: BotController, httpResponse: HttpResponseUtil);
|
|
|
|
/**
|
|
|
|
* Handle singleplayer/settings/bot/limit
|
|
|
|
* Is called by client to define each bot roles wave limit
|
|
|
|
* @returns string
|
|
|
|
*/
|
|
|
|
getBotLimit(url: string, info: IEmptyRequestData, sessionID: string): string;
|
|
|
|
/**
|
|
|
|
* Handle singleplayer/settings/bot/difficulty
|
|
|
|
* @returns string
|
|
|
|
*/
|
|
|
|
getBotDifficulty(url: string, info: IEmptyRequestData, sessionID: string): string;
|
2024-11-12 11:51:30 -07:00
|
|
|
/**
|
|
|
|
* Handle singleplayer/settings/bot/difficulties
|
|
|
|
* @returns dictionary of every bot and its diffiulty settings
|
|
|
|
*/
|
|
|
|
getAllBotDifficulties(url: string, info: IEmptyRequestData, sessionID: string): Record<string, Difficulties>;
|
2023-08-17 19:49:16 -06:00
|
|
|
/**
|
|
|
|
* Handle client/game/bot/generate
|
|
|
|
* @returns IGetBodyResponseData
|
|
|
|
*/
|
2024-11-12 11:51:30 -07:00
|
|
|
generateBots(url: string, info: IGenerateBotsRequestData, sessionID: string): Promise<IGetBodyResponseData<IBotBase[]>>;
|
2023-08-17 19:49:16 -06:00
|
|
|
/**
|
|
|
|
* Handle singleplayer/settings/bot/maxCap
|
|
|
|
* @returns string
|
|
|
|
*/
|
2024-11-12 11:51:30 -07:00
|
|
|
getBotCap(url: string, info: any, sessionID: string): string;
|
2023-08-17 19:49:16 -06:00
|
|
|
/**
|
|
|
|
* Handle singleplayer/settings/bot/getBotBehaviours
|
|
|
|
* @returns string
|
|
|
|
*/
|
|
|
|
getBotBehaviours(): string;
|
|
|
|
}
|