diff --git a/project/src/callbacks/CustomizationCallbacks.ts b/project/src/callbacks/CustomizationCallbacks.ts index 003ae6e2..de6b156b 100644 --- a/project/src/callbacks/CustomizationCallbacks.ts +++ b/project/src/callbacks/CustomizationCallbacks.ts @@ -62,7 +62,12 @@ export class CustomizationCallbacks { return this.httpResponse.getBody(this.customizationController.getHideoutCustomisation(sessionID, info)); } - getStorage(url: string, info: any, sessionID: string): IGetBodyResponseData { + public getStorage(url: string, info: any, sessionID: string): IGetBodyResponseData { 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)); + } } diff --git a/project/src/controllers/CustomizationController.ts b/project/src/controllers/CustomizationController.ts index f08888e1..1b4567fe 100644 --- a/project/src/controllers/CustomizationController.ts +++ b/project/src/controllers/CustomizationController.ts @@ -248,4 +248,8 @@ export class CustomizationController { public getCustomisationStoage(sessionID: string, info: any): ICustomisationStorage[] { return this.databaseService.getTemplates().customisationStoage; } + + public setClothing(sessionId: string, info: any): any { + throw new Error("Method not implemented."); + } } diff --git a/project/src/routers/item_events/CustomizationItemEventRouter.ts b/project/src/routers/item_events/CustomizationItemEventRouter.ts index 14b1730a..41fccf3c 100644 --- a/project/src/routers/item_events/CustomizationItemEventRouter.ts +++ b/project/src/routers/item_events/CustomizationItemEventRouter.ts @@ -27,6 +27,8 @@ export class CustomizationItemEventRouter extends ItemEventRouterDefinition { return this.customizationCallbacks.wearClothing(pmcData, body, sessionID); case "CustomizationBuy": return this.customizationCallbacks.buyClothing(pmcData, body, sessionID); + case "CustomizationSet": + return this.customizationCallbacks.setClothing(pmcData, body, sessionID); } } }