7b6f1eb9ad
* Fingers crossed this will fix the mod loading issue for configs * Renamed classes and documentation for clarity * Remove some extra traces of the old PreSptLoader * Renamed interface for clarity and updated docs * Re-introduced PreSptModLoad for now --------- Co-authored-by: Alex <clodanSPT@hotmail.com>
28 lines
758 B
C#
28 lines
758 B
C#
using SPTarkov.DI.Annotations;
|
|
using SPTarkov.Server.Core.Models.External;
|
|
using SPTarkov.Server.Core.Models.Utils;
|
|
using SPTarkov.Server.Core.Utils;
|
|
|
|
namespace SPTarkov.Server.Core.Loaders;
|
|
|
|
[Injectable(InjectionType.Singleton)]
|
|
public class OnWebAppBuildModLoader(
|
|
ISptLogger<OnWebAppBuildModLoader> _logger,
|
|
IEnumerable<IOnWebAppBuildModAsync> _onWebAppBuildMods
|
|
)
|
|
{
|
|
public async Task OnLoad()
|
|
{
|
|
if (ProgramStatics.MODS())
|
|
{
|
|
_logger.Info("Loading OnWebAppBuildMods...");
|
|
foreach (var onWebAppBuildMod in _onWebAppBuildMods)
|
|
{
|
|
await onWebAppBuildMod.OnWebAppBuildAsync();
|
|
}
|
|
|
|
_logger.Info("Finished loading OnWebAppBuildMods...");
|
|
}
|
|
}
|
|
}
|