This commit is contained in:
Alex
2025-01-11 18:07:07 +00:00
44 changed files with 1573 additions and 482 deletions
+33 -2
View File
@@ -1,22 +1,53 @@
using Core.Annotations;
using Core.DI;
using Core.Models.Enums;
using Core.Models.Spt.Config;
using Core.Servers;
using Core.Services;
using Core.Utils;
using ILogger = Core.Models.Utils.ILogger;
namespace Core.Callbacks;
[Injectable(TypePriority = OnLoadOrder.ModCallbacks)]
public class ModCallbacks : OnLoad
{
public ModCallbacks()
protected ILogger _logger;
protected HttpResponseUtil _httpResponseUtil;
protected HttpFileUtil _httpFileUtil;
// protected PostSptModLoader _postSptModLoader; TODO: needs to be implemented
protected LocalisationService _localisationService;
protected ConfigServer _configServer;
protected HttpConfig _httpConfig;
public ModCallbacks
(
ILogger logger,
HttpResponseUtil httpResponseUtil,
HttpFileUtil httpFileUtil,
LocalisationService localisationService,
ConfigServer configServer
)
{
_logger = logger;
_httpResponseUtil = httpResponseUtil;
_httpFileUtil = httpFileUtil;
_localisationService = localisationService;
_configServer = configServer;
_httpConfig = configServer.GetConfig<HttpConfig>(ConfigTypes.HTTP);
}
public async Task OnLoad()
{
// if (ProgramStatics.MODS) {
// await this.postSptModLoader.load();
// } TODO: needs to be implemented
throw new NotImplementedException();
}
public string GetRoute()
{
throw new NotImplementedException();
return "spt-mods";
}
}