Files
SPT-Server-Build/Libraries/Core/Routers/SaveLoad/InraidSaveLoadRouter.cs
T
2025-02-07 19:36:17 +00:00

29 lines
659 B
C#

using Core.DI;
using Core.Models.Eft.Profile;
using SptCommon.Annotations;
namespace 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;
}
}