23 lines
589 B
C#
23 lines
589 B
C#
using Core.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 List<HandledRoute>() { new HandledRoute("spt-insurance", false) };
|
|
}
|
|
|
|
public override SptProfile HandleLoad(SptProfile profile)
|
|
{
|
|
if (profile.InsuranceList == null)
|
|
profile.InsuranceList = new List<Insurance>();
|
|
|
|
return profile;
|
|
}
|
|
}
|