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:
parent
de00ac3ef2
commit
5c29c898b6
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user