Files
SPT-Server-Build/Libraries/Core/Routers/SaveLoad/InsuranceSaveLoadRouter.cs
T
2025-01-29 12:12:01 +00:00

23 lines
552 B
C#

using SptCommon.Annotations;
using Core.DI;
using Core.Models.Eft.Profile;
namespace Core.Routers.SaveLoad;
[Injectable(InjectableTypeOverride = typeof(SaveLoadRouter))]
public class InsuranceSaveLoadRouter : SaveLoadRouter
{
protected override List<HandledRoute> GetHandledRoutes()
{
return [new ("spt-insurance", false)];
}
public override SptProfile HandleLoad(SptProfile profile)
{
if (profile.InsuranceList == null)
profile.InsuranceList = new List<Insurance>();
return profile;
}
}