using SPTarkov.Server.Core.Callbacks; using SPTarkov.Server.Core.DI; using SPTarkov.Server.Core.Models.Eft.InRaid; using SPTarkov.Server.Core.Utils; using SPTarkov.Common.Annotations; namespace SPTarkov.Server.Core.Routers.Dynamic; [Injectable(InjectableTypeOverride = typeof(DynamicRouter))] public class InraidDynamicRouter : DynamicRouter { public InraidDynamicRouter( JsonUtil jsonUtil, InraidCallbacks inraidCallbacks ) : base( jsonUtil, [ new RouteAction( "/client/location/getLocalloot", ( url, info, sessionID, output ) => inraidCallbacks.RegisterPlayer(url, info as RegisterPlayerRequestData, sessionID), typeof(RegisterPlayerRequestData) ) ] ) { } public override string GetTopLevelRoute() { return "spt-name"; } }