38 lines
979 B
C#
38 lines
979 B
C#
using SPTarkov.Common.Annotations;
|
|
using SPTarkov.Server.Core.Callbacks;
|
|
using SPTarkov.Server.Core.DI;
|
|
using SPTarkov.Server.Core.Models.Eft.InRaid;
|
|
using SPTarkov.Server.Core.Utils;
|
|
|
|
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";
|
|
}
|
|
}
|