Files
SPT-Server-Build/Libraries/SPTarkov.Server.Core/Routers/Static/BotStaticRouter.cs
T
2025-04-22 14:49:05 +01:00

33 lines
860 B
C#

using SPTarkov.Common.Annotations;
using SPTarkov.Server.Core.Callbacks;
using SPTarkov.Server.Core.DI;
using SPTarkov.Server.Core.Models.Eft.Bot;
using SPTarkov.Server.Core.Utils;
namespace SPTarkov.Server.Core.Routers.Static;
[Injectable(InjectableTypeOverride = typeof(StaticRouter))]
public class BotStaticRouter : StaticRouter
{
public BotStaticRouter(
JsonUtil jsonUtil,
BotCallbacks botCallbacks
) : base(
jsonUtil,
[
new RouteAction(
"/client/game/bot/generate",
(
url,
info,
sessionID,
outout
) => botCallbacks.GenerateBots(url, info as GenerateBotsRequestData, sessionID),
typeof(GenerateBotsRequestData)
)
]
)
{
}
}