From 0d52a473c5ef7ec865a7d64bd216f7fed99e40f2 Mon Sep 17 00:00:00 2001 From: Chomp Date: Fri, 27 Dec 2024 00:25:14 +0000 Subject: [PATCH] Stubbed out `CustomizationSet` event --- project/src/callbacks/CustomizationCallbacks.ts | 7 ++++++- project/src/controllers/CustomizationController.ts | 4 ++++ .../routers/item_events/CustomizationItemEventRouter.ts | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) 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); } } }