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

29 lines
713 B
C#

using SPTarkov.Common.Annotations;
using SPTarkov.Server.Core.DI;
using SPTarkov.Server.Core.Models.Eft.Profile;
namespace SPTarkov.Server.Core.Routers.SaveLoad;
[Injectable(InjectableTypeOverride = typeof(SaveLoadRouter))]
public class InraidSaveLoadRouter : SaveLoadRouter
{
protected override List<HandledRoute> GetHandledRoutes()
{
return [new HandledRoute("spt-inraid", false)];
}
public override SptProfile HandleLoad(SptProfile profile)
{
if (profile.InraidData == null)
{
profile.InraidData = new Inraid
{
Location = "none",
Character = "none"
};
}
return profile;
}
}