Implement most of the callbacks, few other changes too

This commit is contained in:
CWX
2025-01-11 17:14:56 +00:00
parent ba78a15613
commit 8f22759ec5
44 changed files with 1601 additions and 494 deletions
+40 -3
View File
@@ -1,9 +1,46 @@
using Core.Context;
using Core.Helpers;
using Core.Models.Eft.InRaid;
using Core.Models.Enums;
using Core.Models.Spt.Config;
using Core.Servers;
using Core.Services;
using ILogger = Core.Models.Utils.ILogger;
namespace Core.Controllers;
public class InRaidController
{
protected ILogger _logger;
protected SaveServer _saveServer;
protected ProfileHelper _profileHelper;
protected LocalisationService _localisationService;
protected ApplicationContext _applicationContext;
protected ConfigServer _configServer;
protected InRaidConfig _inRaidConfig;
protected BotConfig _botConfig;
public InRaidController
(
ILogger logger,
SaveServer saveServer,
ProfileHelper profileHelper,
LocalisationService localisationService,
ApplicationContext applicationContext,
ConfigServer configServer
)
{
_logger = logger;
_saveServer = saveServer;
_profileHelper = profileHelper;
_localisationService = localisationService;
_applicationContext = applicationContext;
_configServer = configServer;
_inRaidConfig = configServer.GetConfig<InRaidConfig>(ConfigTypes.IN_RAID);
_botConfig = configServer.GetConfig<BotConfig>(ConfigTypes.BOT);
}
/// <summary>
/// Save locationId to active profiles in-raid object AND app context
/// </summary>
@@ -33,9 +70,9 @@ public class InRaidController
/// <summary>
/// Get the inraid config from configs/inraid.json
/// </summary>
public void GetInRaidConfig()
public InRaidConfig GetInRaidConfig()
{
throw new NotImplementedException();
return _inRaidConfig;
}
/// <summary>
@@ -63,4 +100,4 @@ public class InRaidController
{
throw new NotImplementedException();
}
}
}