30 lines
700 B
C#
30 lines
700 B
C#
using SptCommon.Annotations;
|
|
using Core.DI;
|
|
using Core.Models.External;
|
|
using Core.Models.Utils;
|
|
|
|
namespace Core.Loaders;
|
|
|
|
[Injectable(InjectableTypeOverride = typeof(OnLoad), TypePriority = OnLoadOrder.PostDBModLoader)]
|
|
public class PostDBModLoader(
|
|
ISptLogger<PostDBModLoader> _logger,
|
|
IEnumerable<IPostDBLoadMod> _postDbLoadMods
|
|
) : OnLoad
|
|
{
|
|
public async Task OnLoad()
|
|
{
|
|
_logger.Info("Loading PostDBLoadMod...");
|
|
foreach (var postDbLoadMod in _postDbLoadMods)
|
|
{
|
|
postDbLoadMod.PostDBLoad();
|
|
}
|
|
|
|
_logger.Info("Finished loading PostDBLoadMod...");
|
|
}
|
|
|
|
public string GetRoute()
|
|
{
|
|
return "spt-post-db-mods";
|
|
}
|
|
}
|