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

Renamed functions to better match their purpose

This commit is contained in:
Chomp 2025-01-17 12:22:06 +00:00
parent de00ac3ef2
commit 5c29c898b6
3 changed files with 12 additions and 8 deletions

View File

@ -46,8 +46,12 @@ export class CustomizationCallbacks {
/**
* Handle CustomizationBuy event
*/
public buyClothing(pmcData: IPmcData, body: IBuyClothingRequestData, sessionID: string): IItemEventRouterResponse {
return this.customizationController.buyClothing(pmcData, body, sessionID);
public buyCustomisation(
pmcData: IPmcData,
body: IBuyClothingRequestData,
sessionID: string,
): IItemEventRouterResponse {
return this.customizationController.buyCustomisation(pmcData, body, sessionID);
}
/** Handle client/hideout/customization/offer/list */
@ -69,11 +73,11 @@ export class CustomizationCallbacks {
}
/** Handle CustomizationSet */
public setClothing(
public setCustomisation(
pmcData: IPmcData,
request: ICustomizationSetRequest,
sessionID: string,
): IItemEventRouterResponse {
return this.customizationController.setClothing(sessionID, request, pmcData);
return this.customizationController.setCustomisation(sessionID, request, pmcData);
}
}

View File

@ -74,7 +74,7 @@ export class CustomizationController {
* @param sessionId Session id
* @returns IItemEventRouterResponse
*/
public buyClothing(
public buyCustomisation(
pmcData: IPmcData,
buyClothingRequest: IBuyClothingRequestData,
sessionId: string,
@ -252,7 +252,7 @@ export class CustomizationController {
}
/** Handle CustomizationSet event */
public setClothing(
public setCustomisation(
sessionId: string,
request: ICustomizationSetRequest,
pmcData: IPmcData,

View File

@ -24,9 +24,9 @@ export class CustomizationItemEventRouter extends ItemEventRouterDefinition {
): Promise<IItemEventRouterResponse> {
switch (url) {
case "CustomizationBuy":
return this.customizationCallbacks.buyClothing(pmcData, body, sessionID);
return this.customizationCallbacks.buyCustomisation(pmcData, body, sessionID);
case "CustomizationSet":
return this.customizationCallbacks.setClothing(pmcData, body, sessionID);
return this.customizationCallbacks.setCustomisation(pmcData, body, sessionID);
}
}
}