mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 02:30:43 -05:00
Stubbed out hideoutCustomizationApply
event
This commit is contained in:
parent
4fc76d580a
commit
a5fd699442
@ -210,6 +210,17 @@ export class HideoutCallbacks implements OnUpdate {
|
|||||||
return this.hideoutController.hideoutDeleteProductionCommand(sessionId, pmcData, request);
|
return this.hideoutController.hideoutDeleteProductionCommand(sessionId, pmcData, request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle client/game/profile/items/moving - HideoutCustomizationApply
|
||||||
|
*/
|
||||||
|
public hideoutCustomizationApplyCommand(
|
||||||
|
pmcData: IPmcData,
|
||||||
|
request: any,
|
||||||
|
sessionId: string,
|
||||||
|
): IItemEventRouterResponse {
|
||||||
|
return this.hideoutController.hideoutCustomizationApply(sessionId, pmcData, request);
|
||||||
|
}
|
||||||
|
|
||||||
public async onUpdate(timeSinceLastRun: number): Promise<boolean> {
|
public async onUpdate(timeSinceLastRun: number): Promise<boolean> {
|
||||||
if (timeSinceLastRun > this.hideoutConfig.runIntervalSeconds) {
|
if (timeSinceLastRun > this.hideoutConfig.runIntervalSeconds) {
|
||||||
this.hideoutController.update();
|
this.hideoutController.update();
|
||||||
|
@ -1397,6 +1397,16 @@ export class HideoutController {
|
|||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle HideoutCustomizationApply event
|
||||||
|
* @param sessionId Session id
|
||||||
|
* @param pmcData Player profile
|
||||||
|
* @param request Client request data
|
||||||
|
*/
|
||||||
|
public hideoutCustomizationApply(sessionId: string, pmcData: IPmcData, request: any): IItemEventRouterResponse {
|
||||||
|
throw new Error("Method not implemented.");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function called every `hideoutConfig.runIntervalSeconds` seconds as part of onUpdate event
|
* Function called every `hideoutConfig.runIntervalSeconds` seconds as part of onUpdate event
|
||||||
*/
|
*/
|
||||||
|
@ -13,4 +13,5 @@ export enum HideoutEventActions {
|
|||||||
HIDEOUT_CANCEL_PRODUCTION_COMMAND = "HideoutCancelProductionCommand",
|
HIDEOUT_CANCEL_PRODUCTION_COMMAND = "HideoutCancelProductionCommand",
|
||||||
HIDEOUT_CIRCLE_OF_CULTIST_PRODUCTION_START = "HideoutCircleOfCultistProductionStart",
|
HIDEOUT_CIRCLE_OF_CULTIST_PRODUCTION_START = "HideoutCircleOfCultistProductionStart",
|
||||||
HIDEOUT_DELETE_PRODUCTION_COMMAND = "HideoutDeleteProductionCommand",
|
HIDEOUT_DELETE_PRODUCTION_COMMAND = "HideoutDeleteProductionCommand",
|
||||||
|
HIDEOUT_CUSTOMIZATION_APPLY_COMMAND = "HideoutCustomizationApply",
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,7 @@ export class HideoutItemEventRouter extends ItemEventRouterDefinition {
|
|||||||
new HandledRoute(HideoutEventActions.HIDEOUT_CANCEL_PRODUCTION_COMMAND, false),
|
new HandledRoute(HideoutEventActions.HIDEOUT_CANCEL_PRODUCTION_COMMAND, false),
|
||||||
new HandledRoute(HideoutEventActions.HIDEOUT_CIRCLE_OF_CULTIST_PRODUCTION_START, false),
|
new HandledRoute(HideoutEventActions.HIDEOUT_CIRCLE_OF_CULTIST_PRODUCTION_START, false),
|
||||||
new HandledRoute(HideoutEventActions.HIDEOUT_DELETE_PRODUCTION_COMMAND, false),
|
new HandledRoute(HideoutEventActions.HIDEOUT_DELETE_PRODUCTION_COMMAND, false),
|
||||||
|
new HandledRoute(HideoutEventActions.HIDEOUT_CUSTOMIZATION_APPLY_COMMAND, false),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,6 +67,8 @@ export class HideoutItemEventRouter extends ItemEventRouterDefinition {
|
|||||||
return this.hideoutCallbacks.circleOfCultistProductionStart(pmcData, body, sessionID);
|
return this.hideoutCallbacks.circleOfCultistProductionStart(pmcData, body, sessionID);
|
||||||
case HideoutEventActions.HIDEOUT_DELETE_PRODUCTION_COMMAND:
|
case HideoutEventActions.HIDEOUT_DELETE_PRODUCTION_COMMAND:
|
||||||
return this.hideoutCallbacks.hideoutDeleteProductionCommand(pmcData, body, sessionID);
|
return this.hideoutCallbacks.hideoutDeleteProductionCommand(pmcData, body, sessionID);
|
||||||
|
case HideoutEventActions.HIDEOUT_CUSTOMIZATION_APPLY_COMMAND:
|
||||||
|
return this.hideoutCallbacks.hideoutCustomizationApplyCommand(pmcData, body, sessionID);
|
||||||
default:
|
default:
|
||||||
throw new Error(`Unhandled event ${url} request: ${JSON.stringify(body)}`);
|
throw new Error(`Unhandled event ${url} request: ${JSON.stringify(body)}`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user