Skip to main content
Deno 2 is finally here 🎉️
Learn more
class LauncherController
import { LauncherController } from "https://deno.land/x/sptaki@1.2.0/controllers/LauncherController.d.ts";

Constructors

new
LauncherController(
logger: ILogger,
hashUtil: HashUtil,
timeUtil: TimeUtil,
randomUtil: RandomUtil,
saveServer: SaveServer,
httpServerHelper: HttpServerHelper,
profileHelper: ProfileHelper,
databaseServer: DatabaseServer,
localisationService: LocalisationService,
preAkiModLoader: PreAkiModLoader,
configServer: ConfigServer,
)

Properties

protected
configServer: ConfigServer
protected
coreConfig: ICoreConfig
protected
databaseServer: DatabaseServer
protected
hashUtil: HashUtil
protected
httpServerHelper: HttpServerHelper
protected
localisationService: LocalisationService
protected
logger: ILogger
protected
preAkiModLoader: PreAkiModLoader
protected
profileHelper: ProfileHelper
protected
randomUtil: RandomUtil
protected
saveServer: SaveServer
protected
timeUtil: TimeUtil

Methods

protected
createAccount(info: IRegisterData): string
protected
formatID(timeStamp: number, counter: number): string
protected
generateProfileId(): string
protected
getProfileDescriptions(): Record<string, string>

Get descriptive text for each of the profile edtions a player can choose, keyed by profile.json profile type e.g. "Edge Of Darkness"

find(sessionIdKey: string): Info

Get the mods the server has currently loaded

getServerModsProfileUsed(sessionId: string): ModDetails[]

Get the mods a profile has ever loaded into game with

login(info: ILoginRequestData): string
register(info: IRegisterData): string
wipe(info: IRegisterData): string

Handle launcher requesting profile be wiped