From 5ba0de5b80a6ea5de3f3d2e7f4856debb0984290 Mon Sep 17 00:00:00 2001 From: CWX Date: Thu, 4 Jul 2024 22:40:39 +0100 Subject: [PATCH] add routes for start and end of local raid --- .../src/routers/static/MatchStaticRouter.ts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/project/src/routers/static/MatchStaticRouter.ts b/project/src/routers/static/MatchStaticRouter.ts index 4fe378a0..7870d8e3 100644 --- a/project/src/routers/static/MatchStaticRouter.ts +++ b/project/src/routers/static/MatchStaticRouter.ts @@ -8,6 +8,7 @@ import { IGroupCharacter } from "@spt/models/eft/match/IGroupCharacter"; import { IMatchGroupCurrentResponse } from "@spt/models/eft/match/IMatchGroupCurrentResponse"; import { IMatchGroupStatusResponse } from "@spt/models/eft/match/IMatchGroupStatusResponse"; import { IProfileStatusResponse } from "@spt/models/eft/match/IProfileStatusResponse"; +import { IStartLocalRaidResponseData } from "@spt/models/eft/match/IStartLocalRaidResponseData"; @injectable() export class MatchStaticRouter extends StaticRouter @@ -283,6 +284,30 @@ export class MatchStaticRouter extends StaticRouter return this.matchCallbacks.removePlayerFromGroup(url, info, sessionID); }, ), + new RouteAction( + "/client/match/local/start", + async ( + url: string, + info: any, + sessionID: string, + output: string, + ): Promise> => + { + return this.matchCallbacks.startLocalRaid(url, info, sessionID); + }, + ), + new RouteAction( + "/client/match/local/end", + async ( + url: string, + info: any, + sessionID: string, + output: string, + ): Promise => + { + return this.matchCallbacks.endLocalRaid(url, info, sessionID); + }, + ) ]); } }