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

Constructors

new
BuildController(
logger: ILogger,
hashUtil: HashUtil,
eventOutputHolder: EventOutputHolder,
jsonUtil: JsonUtil,
databaseServer: DatabaseServer,
profileHelper: ProfileHelper,
itemHelper: ItemHelper,
saveServer: SaveServer,
)

Properties

protected
databaseServer: DatabaseServer
protected
eventOutputHolder: EventOutputHolder
protected
hashUtil: HashUtil
protected
itemHelper: ItemHelper
protected
jsonUtil: JsonUtil
protected
logger: ILogger
protected
profileHelper: ProfileHelper
protected
saveServer: SaveServer

Methods

protected
removePlayerBuild(idToRemove: string, sessionID: string): void
createMagazineTemplate(sessionId: string, request: ISetMagazineRequest): void

Handle client/builds/magazine/save

getUserBuilds(sessionID: string): IUserBuilds

Handle client/handbook/builds/my/list

removeBuild(sessionID: string, request: IRemoveBuildRequestData): void

Handle client/builds/delete

saveEquipmentBuild(sessionID: string, request: IPresetBuildActionRequestData): void

Handle client/builds/equipment/save event

saveWeaponBuild(sessionId: string, body: IPresetBuildActionRequestData): void

Handle client/builds/weapon/save