0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 06:30:43 -05:00

Stubbed out CustomizationSet event

This commit is contained in:
Chomp 2024-12-27 00:25:14 +00:00
parent 988d967d95
commit 0d52a473c5
3 changed files with 12 additions and 1 deletions

View File

@ -62,7 +62,12 @@ export class CustomizationCallbacks {
return this.httpResponse.getBody(this.customizationController.getHideoutCustomisation(sessionID, info)); return this.httpResponse.getBody(this.customizationController.getHideoutCustomisation(sessionID, info));
} }
getStorage(url: string, info: any, sessionID: string): IGetBodyResponseData<ICustomisationStorage> { public getStorage(url: string, info: any, sessionID: string): IGetBodyResponseData<ICustomisationStorage> {
return this.httpResponse.getBody(this.customizationController.getCustomisationStoage(sessionID, info)); return this.httpResponse.getBody(this.customizationController.getCustomisationStoage(sessionID, info));
} }
/** Handle CustomizationSet */
public setClothing(pmcData: IPmcData, info: any, sessionID: string): IItemEventRouterResponse {
return this.httpResponse.getBody(this.customizationController.setClothing(sessionID, info));
}
} }

View File

@ -248,4 +248,8 @@ export class CustomizationController {
public getCustomisationStoage(sessionID: string, info: any): ICustomisationStorage[] { public getCustomisationStoage(sessionID: string, info: any): ICustomisationStorage[] {
return this.databaseService.getTemplates().customisationStoage; return this.databaseService.getTemplates().customisationStoage;
} }
public setClothing(sessionId: string, info: any): any {
throw new Error("Method not implemented.");
}
} }

View File

@ -27,6 +27,8 @@ export class CustomizationItemEventRouter extends ItemEventRouterDefinition {
return this.customizationCallbacks.wearClothing(pmcData, body, sessionID); return this.customizationCallbacks.wearClothing(pmcData, body, sessionID);
case "CustomizationBuy": case "CustomizationBuy":
return this.customizationCallbacks.buyClothing(pmcData, body, sessionID); return this.customizationCallbacks.buyClothing(pmcData, body, sessionID);
case "CustomizationSet":
return this.customizationCallbacks.setClothing(pmcData, body, sessionID);
} }
} }
} }