Skip to main content
The Deno 2 Release Candidate is here
Learn more
class BotCallbacks
import { BotCallbacks } from "https://deno.land/x/sptaki@1.2.0/callbacks/BotCallbacks.d.ts";

Constructors

new
BotCallbacks(botController: BotController, httpResponse: HttpResponseUtil)

Properties

protected
botController: BotController
protected
httpResponse: HttpResponseUtil

Methods

generateBots(
url: string,
sessionID: string,
): IGetBodyResponseData<IBotBase[]>

Handle client/game/bot/generate

getAllBotDifficulties(
url: string,
sessionID: string,
): Record<string, Difficulties>

Handle singleplayer/settings/bot/difficulties

Handle singleplayer/settings/bot/getBotBehaviours

getBotCap(): string

Handle singleplayer/settings/bot/maxCap

getBotDifficulty(
url: string,
sessionID: string,
): string

Handle singleplayer/settings/bot/difficulty

getBotLimit(
url: string,
sessionID: string,
): string

Handle singleplayer/settings/bot/limit Is called by client to define each bot roles wave limit