Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class GameCallbacks
implements OnLoad
import { GameCallbacks } from "https://deno.land/x/sptaki@1.2.0/callbacks/mod.ts";

Constructors

new
GameCallbacks(
httpResponse: HttpResponseUtil,
watermark: Watermark,
saveServer: SaveServer,
gameController: GameController,
)

Properties

protected
gameController: GameController
protected
httpResponse: HttpResponseUtil
protected
saveServer: SaveServer
protected
watermark: Watermark

Methods

Handle client/game/keepalive

Handle client/game/logout Save profiles on game close

gameStart(
url: string,
sessionID: string,
): IGetBodyResponseData<IGameStartResponse>

Handle client/game/start

Handle client/match/group/current

Handle client/game/config

getRaidTime(
url: string,
sessionID: string,
): IGetRaidTimeResponse

Handle singleplayer/settings/getRaidTime

getRoute(): string
getServer(
url: string,
sessionID: string,
): IGetBodyResponseData<IServerDetails[]>

Handle client/server/list

getVersion(
url: string,
sessionID: string,
): string

Handle singleplayer/settings/version

onLoad(): Promise<void>
reportNickname(
url: string,
sessionID: string,
): INullResponseData

Handle client/checkVersion

versionValidate(
url: string,
sessionID: string,
): INullResponseData

Handle client/game/version/validate