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: DatabaseServerprotected
eventOutputHolder: EventOutputHolderprotected
hashUtil: HashUtilprotected
itemHelper: ItemHelperprotected
jsonUtil: JsonUtilprotected
logger: ILoggerprotected
profileHelper: ProfileHelperprotected
saveServer: SaveServerMethods
protected
removePlayerBuild(idToRemove: string, sessionID: string): voidcreateMagazineTemplate(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