Files
SPT-Server-Build/Libraries/SPTarkov.Server.Core/Routers/SaveLoad/InraidSaveLoadRouter.cs
T

22 lines
553 B
C#

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