diff --git a/Libraries/SPTarkov.Server.Core/Callbacks/BtrDeliveryCallbacks.cs b/Libraries/SPTarkov.Server.Core/Callbacks/BtrDeliveryCallbacks.cs index a37d6313..0b58c45c 100644 --- a/Libraries/SPTarkov.Server.Core/Callbacks/BtrDeliveryCallbacks.cs +++ b/Libraries/SPTarkov.Server.Core/Callbacks/BtrDeliveryCallbacks.cs @@ -18,8 +18,7 @@ public class BtrDeliveryCallbacks( BtrDeliveryService _btrDeliveryService, TimeUtil _timeUtil, ConfigServer _configServer, - SaveServer _saveServer, - HashUtil _hashUtil + SaveServer _saveServer ) : IOnUpdate { private readonly BtrDeliveryConfig _btrDeliveryConfig = diff --git a/Libraries/SPTarkov.Server.Core/Callbacks/DialogueCallbacks.cs b/Libraries/SPTarkov.Server.Core/Callbacks/DialogueCallbacks.cs index c04db30e..df3ea82b 100644 --- a/Libraries/SPTarkov.Server.Core/Callbacks/DialogueCallbacks.cs +++ b/Libraries/SPTarkov.Server.Core/Callbacks/DialogueCallbacks.cs @@ -10,7 +10,6 @@ namespace SPTarkov.Server.Core.Callbacks; [Injectable(TypePriority = OnUpdateOrder.DialogueCallbacks)] public class DialogueCallbacks( - HashUtil _hashUtil, TimeUtil _timeUtil, HttpResponseUtil _httpResponseUtil, DialogueController _dialogueController diff --git a/Libraries/SPTarkov.Server.Core/Callbacks/InsuranceCallbacks.cs b/Libraries/SPTarkov.Server.Core/Callbacks/InsuranceCallbacks.cs index 48461ad6..ed83049c 100644 --- a/Libraries/SPTarkov.Server.Core/Callbacks/InsuranceCallbacks.cs +++ b/Libraries/SPTarkov.Server.Core/Callbacks/InsuranceCallbacks.cs @@ -6,7 +6,6 @@ using SPTarkov.Server.Core.Models.Eft.Insurance; using SPTarkov.Server.Core.Models.Eft.ItemEvent; using SPTarkov.Server.Core.Models.Spt.Config; using SPTarkov.Server.Core.Servers; -using SPTarkov.Server.Core.Services; using SPTarkov.Server.Core.Utils; namespace SPTarkov.Server.Core.Callbacks; @@ -14,7 +13,6 @@ namespace SPTarkov.Server.Core.Callbacks; [Injectable(TypePriority = OnUpdateOrder.InsuranceCallbacks)] public class InsuranceCallbacks( InsuranceController _insuranceController, - InsuranceService _insuranceService, HttpResponseUtil _httpResponseUtil, ConfigServer _configServer ) : IOnUpdate diff --git a/Libraries/SPTarkov.Server.Core/Generators/BotLevelGenerator.cs b/Libraries/SPTarkov.Server.Core/Generators/BotLevelGenerator.cs index f811efdd..843d5040 100644 --- a/Libraries/SPTarkov.Server.Core/Generators/BotLevelGenerator.cs +++ b/Libraries/SPTarkov.Server.Core/Generators/BotLevelGenerator.cs @@ -13,7 +13,6 @@ namespace SPTarkov.Server.Core.Generators; public class BotLevelGenerator( ISptLogger _logger, RandomUtil _randomUtil, - MathUtil _mathUtil, DatabaseService _databaseService ) { diff --git a/Libraries/SPTarkov.Server.Core/Helpers/AssortHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/AssortHelper.cs index 62991d86..ffc70dca 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/AssortHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/AssortHelper.cs @@ -4,7 +4,6 @@ using SPTarkov.Server.Core.Models.Eft.Common; using SPTarkov.Server.Core.Models.Eft.Common.Tables; using SPTarkov.Server.Core.Models.Enums; using SPTarkov.Server.Core.Models.Utils; -using SPTarkov.Server.Core.Servers; using SPTarkov.Server.Core.Services; namespace SPTarkov.Server.Core.Helpers; @@ -12,8 +11,6 @@ namespace SPTarkov.Server.Core.Helpers; [Injectable] public class AssortHelper( ISptLogger _logger, - ItemHelper _itemHelper, - DatabaseServer _databaseServer, ServerLocalisationService _serverLocalisationService, QuestHelper _questHelper ) diff --git a/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommands/ProfileCommand/ProfileSptCommand.cs b/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommands/ProfileCommand/ProfileSptCommand.cs index 7d219ffd..eb6342db 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommands/ProfileCommand/ProfileSptCommand.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommands/ProfileCommand/ProfileSptCommand.cs @@ -9,14 +9,12 @@ using SPTarkov.Server.Core.Models.Enums; using SPTarkov.Server.Core.Models.Spt.Dialog; using SPTarkov.Server.Core.Models.Utils; using SPTarkov.Server.Core.Services; -using SPTarkov.Server.Core.Utils; namespace SPTarkov.Server.Core.Helpers.Dialogue.Commando.SptCommands.ProfileCommand; [Injectable] public class ProfileSptCommand( ISptLogger _logger, - HashUtil _hashUtil, MailSendService _mailSendService, ProfileHelper _profileHelper ) : ISptCommand diff --git a/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommands/TraderCommand/TraderSptCommand.cs b/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommands/TraderCommand/TraderSptCommand.cs index f1976851..8293ee4f 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommands/TraderCommand/TraderSptCommand.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommands/TraderCommand/TraderSptCommand.cs @@ -10,14 +10,12 @@ using SPTarkov.Server.Core.Models.Enums; using SPTarkov.Server.Core.Models.Spt.Dialog; using SPTarkov.Server.Core.Models.Utils; using SPTarkov.Server.Core.Services; -using SPTarkov.Server.Core.Utils; namespace SPTarkov.Server.Core.Helpers.Dialogue.Commando.SptCommands.TraderCommand; [Injectable] public class TraderSptCommand( ISptLogger _logger, - HashUtil _hashUtil, TraderHelper _traderHelper, MailSendService _mailSendService ) : ISptCommand diff --git a/Libraries/SPTarkov.Server.Core/Helpers/HideoutHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/HideoutHelper.cs index 9b02c2c0..5c9ddbd6 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/HideoutHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/HideoutHelper.cs @@ -21,7 +21,6 @@ public class HideoutHelper( ISptLogger _logger, TimeUtil _timeUtil, ServerLocalisationService _serverLocalisationService, - HashUtil _hashUtil, DatabaseService _databaseService, EventOutputHolder _eventOutputHolder, HttpResponseUtil _httpResponseUtil, diff --git a/Libraries/SPTarkov.Server.Core/Helpers/InRaidHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/InRaidHelper.cs index 2caf807e..3361d36f 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/InRaidHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/InRaidHelper.cs @@ -14,7 +14,6 @@ namespace SPTarkov.Server.Core.Helpers; [Injectable] public class InRaidHelper( InventoryHelper _inventoryHelper, - ItemHelper _itemHelper, ConfigServer _configServer, ICloner _cloner, DatabaseService _databaseService diff --git a/Libraries/SPTarkov.Server.Core/Helpers/ModHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/ModHelper.cs index 04ef1893..3c257120 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/ModHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/ModHelper.cs @@ -5,17 +5,8 @@ using SPTarkov.Server.Core.Utils; namespace SPTarkov.Server.Core.Helpers; [Injectable] -public class ModHelper +public class ModHelper(FileUtil fileUtil, JsonUtil jsonUtil) { - private readonly FileUtil _fileUtil; - private readonly JsonUtil _jsonUtil; - - public ModHelper(FileUtil fileUtil, JsonUtil jsonUtil) - { - _fileUtil = fileUtil; - _jsonUtil = jsonUtil; - } - public string GetAbsolutePathToModFolder(Assembly modAssembly) { // The full path to the mod folder @@ -25,15 +16,15 @@ public class ModHelper public string GetRawFileData(string pathToFile, string fileName) { // Read the content of the config file as a string - return _fileUtil.ReadFile(Path.Combine(pathToFile, fileName)); + return fileUtil.ReadFile(Path.Combine(pathToFile, fileName)); } public T GetJsonDataFromFile(string pathToFile, string fileName) { // Read the content of the config file as a string - var rawContent = _fileUtil.ReadFile(Path.Combine(pathToFile, fileName)); + var rawContent = fileUtil.ReadFile(Path.Combine(pathToFile, fileName)); // Take the string above and deserialise it into a file with a type (defined between the diamond brackets) - return _jsonUtil.Deserialize(rawContent); + return jsonUtil.Deserialize(rawContent); } } diff --git a/Libraries/SPTarkov.Server.Core/Helpers/NotificationSendHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/NotificationSendHelper.cs index d584b4c2..6a6c711b 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/NotificationSendHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/NotificationSendHelper.cs @@ -16,7 +16,6 @@ namespace SPTarkov.Server.Core.Helpers; public class NotificationSendHelper( ISptLogger _logger, SptWebSocketConnectionHandler _sptWebSocketConnectionHandler, - HashUtil _hashUtil, SaveServer _saveServer, NotificationService _notificationService, TimeUtil _timeUtil, diff --git a/Libraries/SPTarkov.Server.Core/Helpers/NotifierHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/NotifierHelper.cs index ee05a8dd..44208ebd 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/NotifierHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/NotifierHelper.cs @@ -2,12 +2,11 @@ using SPTarkov.DI.Annotations; using SPTarkov.Server.Core.Models.Common; using SPTarkov.Server.Core.Models.Eft.Profile; using SPTarkov.Server.Core.Models.Eft.Ws; -using SPTarkov.Server.Core.Utils; namespace SPTarkov.Server.Core.Helpers; [Injectable(InjectionType.Singleton)] -public class NotifierHelper(HttpServerHelper httpServerHelper, HashUtil hashUtil) +public class NotifierHelper(HttpServerHelper httpServerHelper) { protected static readonly WsPing ping = new(); diff --git a/Libraries/SPTarkov.Server.Core/Helpers/RagfairHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/RagfairHelper.cs index 0f712dd1..c531839d 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/RagfairHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/RagfairHelper.cs @@ -15,7 +15,6 @@ public class RagfairHelper( TraderAssortHelper traderAssortHelper, DatabaseService databaseService, HandbookHelper handbookHelper, - ItemHelper itemHelper, RagfairLinkedItemService ragfairLinkedItemService, ConfigServer configServer, ICloner cloner diff --git a/Libraries/SPTarkov.Server.Core/Helpers/RagfairOfferHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/RagfairOfferHelper.cs index 9ce238bb..84dbc02d 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/RagfairOfferHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/RagfairOfferHelper.cs @@ -21,7 +21,6 @@ namespace SPTarkov.Server.Core.Helpers; public class RagfairOfferHelper( ISptLogger _logger, TimeUtil _timeUtil, - HashUtil _hashUtil, BotHelper _botHelper, RagfairSortHelper _ragfairSortHelper, PresetHelper _presetHelper, diff --git a/Libraries/SPTarkov.Server.Core/Helpers/RagfairServerHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/RagfairServerHelper.cs index b30afeb7..57264b87 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/RagfairServerHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/RagfairServerHelper.cs @@ -18,7 +18,6 @@ public class RagfairServerHelper( TimeUtil timeUtil, DatabaseService databaseService, ItemHelper itemHelper, - TraderHelper traderHelper, WeightedRandomHelper weightedRandomHelper, MailSendService mailSendService, ServerLocalisationService localisationService, diff --git a/Libraries/SPTarkov.Server.Core/Helpers/TradeHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/TradeHelper.cs index f77f8e24..4dd395be 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/TradeHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/TradeHelper.cs @@ -19,7 +19,6 @@ namespace SPTarkov.Server.Core.Helpers; [Injectable] public class TradeHelper( ISptLogger _logger, - DatabaseService _databaseService, TraderHelper _traderHelper, ItemHelper _itemHelper, QuestHelper _questHelper, diff --git a/Libraries/SPTarkov.Server.Core/Servers/ConfigServer.cs b/Libraries/SPTarkov.Server.Core/Servers/ConfigServer.cs index 0258ac20..ccf09392 100644 --- a/Libraries/SPTarkov.Server.Core/Servers/ConfigServer.cs +++ b/Libraries/SPTarkov.Server.Core/Servers/ConfigServer.cs @@ -11,10 +11,10 @@ namespace SPTarkov.Server.Core.Servers; public class ConfigServer { protected readonly string[] acceptableFileExtensions = ["json", "jsonc"]; - protected FileUtil _fileUtil; - protected JsonUtil _jsonUtil; - protected ISptLogger _logger; - private static Dictionary _configs = new(); + protected readonly FileUtil _fileUtil; + protected readonly JsonUtil _jsonUtil; + protected readonly ISptLogger _logger; + private static readonly Dictionary _configs = new(); public ConfigServer(ISptLogger logger, JsonUtil jsonUtil, FileUtil fileUtil) { diff --git a/Libraries/SPTarkov.Server.Core/Services/BackupService.cs b/Libraries/SPTarkov.Server.Core/Services/BackupService.cs index f432ff23..40c06ba8 100644 --- a/Libraries/SPTarkov.Server.Core/Services/BackupService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/BackupService.cs @@ -15,15 +15,15 @@ public class BackupService protected const string _profileDir = "./user/profiles"; protected readonly List _activeServerMods; - protected BackupConfig _backupConfig; + protected readonly BackupConfig _backupConfig; // Runs Init() every x minutes protected Timer _backupIntervalTimer; - protected FileUtil _fileUtil; - protected JsonUtil _jsonUtil; - protected ISptLogger _logger; - protected TimeUtil _timeUtil; - protected IReadOnlyList _loadedMods; + protected readonly FileUtil _fileUtil; + protected readonly JsonUtil _jsonUtil; + protected readonly ISptLogger _logger; + protected readonly TimeUtil _timeUtil; + protected readonly IReadOnlyList _loadedMods; public BackupService( ISptLogger logger, diff --git a/Libraries/SPTarkov.Server.Core/Services/BotGenerationCacheService.cs b/Libraries/SPTarkov.Server.Core/Services/BotGenerationCacheService.cs index 0082120c..45e8b17b 100644 --- a/Libraries/SPTarkov.Server.Core/Services/BotGenerationCacheService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/BotGenerationCacheService.cs @@ -12,7 +12,7 @@ public class BotGenerationCacheService( ServerLocalisationService _serverLocalisationService ) { - protected Queue _activeBotsInRaid = []; + protected readonly Queue _activeBotsInRaid = []; protected readonly ConcurrentDictionary> _storedBots = new(); /// diff --git a/Libraries/SPTarkov.Server.Core/Services/BtrDeliveryService.cs b/Libraries/SPTarkov.Server.Core/Services/BtrDeliveryService.cs index d0451426..fabbe5f8 100644 --- a/Libraries/SPTarkov.Server.Core/Services/BtrDeliveryService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/BtrDeliveryService.cs @@ -17,7 +17,6 @@ public class BtrDeliveryService( ISptLogger _logger, DatabaseService _databaseService, RandomUtil _randomUtil, - HashUtil _hashUtil, TimeUtil _timeUtil, SaveServer _saveServer, MailSendService _mailSendService, diff --git a/Libraries/SPTarkov.Server.Core/Services/DatabaseService.cs b/Libraries/SPTarkov.Server.Core/Services/DatabaseService.cs index ce9d7d88..332e9292 100644 --- a/Libraries/SPTarkov.Server.Core/Services/DatabaseService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/DatabaseService.cs @@ -10,7 +10,6 @@ using SPTarkov.Server.Core.Models.Spt.Server; using SPTarkov.Server.Core.Models.Spt.Templates; using SPTarkov.Server.Core.Models.Utils; using SPTarkov.Server.Core.Servers; -using SPTarkov.Server.Core.Utils; using Hideout = SPTarkov.Server.Core.Models.Spt.Hideout.Hideout; using Locations = SPTarkov.Server.Core.Models.Spt.Server.Locations; using LogLevel = SPTarkov.Server.Core.Models.Spt.Logging.LogLevel; @@ -24,8 +23,7 @@ namespace SPTarkov.Server.Core.Services; public class DatabaseService( ISptLogger _logger, DatabaseServer _databaseServer, - ServerLocalisationService _serverLocalisationService, - HashUtil _hashUtil + ServerLocalisationService _serverLocalisationService ) { private bool _isDataValid = true; diff --git a/Libraries/SPTarkov.Server.Core/Services/GiftService.cs b/Libraries/SPTarkov.Server.Core/Services/GiftService.cs index 5cdb99c9..8561039f 100644 --- a/Libraries/SPTarkov.Server.Core/Services/GiftService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/GiftService.cs @@ -16,7 +16,6 @@ public class GiftService( ISptLogger _logger, MailSendService _mailSendService, ServerLocalisationService _serverLocalisationService, - HashUtil _hashUtil, TimeUtil _timeUtil, ProfileHelper _profileHelper, ConfigServer _configServer diff --git a/Libraries/SPTarkov.Server.Core/Services/InsuranceService.cs b/Libraries/SPTarkov.Server.Core/Services/InsuranceService.cs index 03a52852..13e23a17 100644 --- a/Libraries/SPTarkov.Server.Core/Services/InsuranceService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/InsuranceService.cs @@ -10,7 +10,6 @@ using SPTarkov.Server.Core.Models.Spt.Services; using SPTarkov.Server.Core.Models.Utils; using SPTarkov.Server.Core.Servers; using SPTarkov.Server.Core.Utils; -using SPTarkov.Server.Core.Utils.Cloners; using Insurance = SPTarkov.Server.Core.Models.Eft.Profile.Insurance; using LogLevel = SPTarkov.Server.Core.Models.Spt.Logging.LogLevel; @@ -28,8 +27,7 @@ public class InsuranceService( ProfileHelper _profileHelper, ServerLocalisationService _serverLocalisationService, MailSendService _mailSendService, - ConfigServer _configServer, - ICloner _cloner + ConfigServer _configServer ) { protected readonly InsuranceConfig _insuranceConfig = diff --git a/Libraries/SPTarkov.Server.Core/Services/LocationLifecycleService.cs b/Libraries/SPTarkov.Server.Core/Services/LocationLifecycleService.cs index 35c6c06e..28c9285a 100644 --- a/Libraries/SPTarkov.Server.Core/Services/LocationLifecycleService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/LocationLifecycleService.cs @@ -28,7 +28,6 @@ public class LocationLifecycleService protected ICloner _cloner; protected ConfigServer _configServer; protected DatabaseService _databaseService; - protected HashUtil _hashUtil; protected HealthHelper _healthHelper; protected HideoutConfig _hideoutConfig; protected InRaidConfig _inRaidConfig; @@ -97,7 +96,6 @@ public class LocationLifecycleService _timeUtil = timeUtil; _databaseService = databaseService; _profileHelper = profileHelper; - _hashUtil = hashUtil; _profileActivityService = profileActivityService; _botGenerationCacheService = botGenerationCacheService; _botNameService = botNameService; diff --git a/Libraries/SPTarkov.Server.Core/Services/MailSendService.cs b/Libraries/SPTarkov.Server.Core/Services/MailSendService.cs index 15d344a6..1d776eee 100644 --- a/Libraries/SPTarkov.Server.Core/Services/MailSendService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/MailSendService.cs @@ -17,7 +17,6 @@ namespace SPTarkov.Server.Core.Services; [Injectable] public class MailSendService( ISptLogger _logger, - HashUtil _hashUtil, TimeUtil _timeUtil, SaveServer _saveServer, DatabaseService _databaseService, @@ -26,7 +25,6 @@ public class MailSendService( NotificationSendHelper _notificationSendHelper, ServerLocalisationService _serverLocalisationService, ItemHelper _itemHelper, - TraderHelper _traderHelper, ICloner _cloner ) { diff --git a/Libraries/SPTarkov.Server.Core/Services/Mod/CustomItemService.cs b/Libraries/SPTarkov.Server.Core/Services/Mod/CustomItemService.cs index 56daabb5..8eaf9ec2 100644 --- a/Libraries/SPTarkov.Server.Core/Services/Mod/CustomItemService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/Mod/CustomItemService.cs @@ -6,7 +6,6 @@ using SPTarkov.Server.Core.Models.Eft.Common.Tables; using SPTarkov.Server.Core.Models.Enums; using SPTarkov.Server.Core.Models.Spt.Mod; using SPTarkov.Server.Core.Models.Utils; -using SPTarkov.Server.Core.Utils; using SPTarkov.Server.Core.Utils.Cloners; namespace SPTarkov.Server.Core.Services.Mod; @@ -14,12 +13,10 @@ namespace SPTarkov.Server.Core.Services.Mod; [Injectable] public class CustomItemService( ISptLogger logger, - HashUtil hashUtil, DatabaseService databaseService, ItemHelper itemHelper, ItemBaseClassService itemBaseClassService, - ICloner cloner, - LocaleService localeService + ICloner cloner ) { /// diff --git a/Libraries/SPTarkov.Server.Core/Services/PaymentService.cs b/Libraries/SPTarkov.Server.Core/Services/PaymentService.cs index 0c4e6cdf..ae8031de 100644 --- a/Libraries/SPTarkov.Server.Core/Services/PaymentService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/PaymentService.cs @@ -19,7 +19,6 @@ namespace SPTarkov.Server.Core.Services; [Injectable(InjectionType.Singleton)] public class PaymentService( ISptLogger _logger, - HashUtil _hashUtil, HttpResponseUtil _httpResponseUtil, HandbookHelper _handbookHelper, TraderHelper _traderHelper, diff --git a/Libraries/SPTarkov.Server.Core/Services/PmcChatResponseService.cs b/Libraries/SPTarkov.Server.Core/Services/PmcChatResponseService.cs index 80c766a8..d8fb3661 100644 --- a/Libraries/SPTarkov.Server.Core/Services/PmcChatResponseService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/PmcChatResponseService.cs @@ -15,11 +15,9 @@ namespace SPTarkov.Server.Core.Services; [Injectable(InjectionType.Singleton)] public class PmcChatResponseService( ISptLogger _logger, - HashUtil _hashUtil, RandomUtil _randomUtil, NotificationSendHelper _notificationSendHelper, WeightedRandomHelper _weightedRandomHelper, - DatabaseService _databaseService, ServerLocalisationService _serverLocalisationService, GiftService _giftService, LocaleService _localeService, diff --git a/Libraries/SPTarkov.Server.Core/Services/PostDbLoadService.cs b/Libraries/SPTarkov.Server.Core/Services/PostDbLoadService.cs index e6d1a9c9..8e965afd 100644 --- a/Libraries/SPTarkov.Server.Core/Services/PostDbLoadService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/PostDbLoadService.cs @@ -5,7 +5,6 @@ using SPTarkov.Server.Core.Models.Enums; using SPTarkov.Server.Core.Models.Spt.Config; using SPTarkov.Server.Core.Models.Utils; using SPTarkov.Server.Core.Servers; -using SPTarkov.Server.Core.Utils; using SPTarkov.Server.Core.Utils.Cloners; namespace SPTarkov.Server.Core.Services; @@ -13,7 +12,6 @@ namespace SPTarkov.Server.Core.Services; [Injectable(InjectionType.Singleton)] public class PostDbLoadService( ISptLogger _logger, - HashUtil _hashUtil, DatabaseService _databaseService, ServerLocalisationService _serverLocalisationService, SeasonalEventService _seasonalEventService, diff --git a/Libraries/SPTarkov.Server.Core/Services/RagfairOfferService.cs b/Libraries/SPTarkov.Server.Core/Services/RagfairOfferService.cs index c498babb..55d2f122 100644 --- a/Libraries/SPTarkov.Server.Core/Services/RagfairOfferService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/RagfairOfferService.cs @@ -17,7 +17,6 @@ namespace SPTarkov.Server.Core.Services; public class RagfairOfferService( ISptLogger logger, TimeUtil timeUtil, - HashUtil hashUtil, DatabaseService databaseService, SaveServer saveServer, RagfairServerHelper ragfairServerHelper, diff --git a/Libraries/SPTarkov.Server.Core/Utils/App.cs b/Libraries/SPTarkov.Server.Core/Utils/App.cs index 31b22b04..e2c90423 100644 --- a/Libraries/SPTarkov.Server.Core/Utils/App.cs +++ b/Libraries/SPTarkov.Server.Core/Utils/App.cs @@ -13,7 +13,6 @@ namespace SPTarkov.Server.Core.Utils; public class App( IServiceProvider _serviceProvider, ISptLogger _logger, - DatabaseImporter _databaseImporter, TimeUtil _timeUtil, RandomUtil _randomUtil, ServerLocalisationService _serverLocalisationService, diff --git a/Libraries/SPTarkov.Server.Core/Utils/HashUtil.cs b/Libraries/SPTarkov.Server.Core/Utils/HashUtil.cs index 9238a8a4..c26cdedd 100644 --- a/Libraries/SPTarkov.Server.Core/Utils/HashUtil.cs +++ b/Libraries/SPTarkov.Server.Core/Utils/HashUtil.cs @@ -6,7 +6,7 @@ using SPTarkov.DI.Annotations; namespace SPTarkov.Server.Core.Utils; [Injectable(InjectionType.Singleton)] -public partial class HashUtil(RandomUtil _randomUtil) +public class HashUtil(RandomUtil _randomUtil) { public uint GenerateCrc32ForData(string data) { diff --git a/Libraries/SPTarkov.Server.Core/Utils/RagfairOfferHolder.cs b/Libraries/SPTarkov.Server.Core/Utils/RagfairOfferHolder.cs index 128685be..ab3778b5 100644 --- a/Libraries/SPTarkov.Server.Core/Utils/RagfairOfferHolder.cs +++ b/Libraries/SPTarkov.Server.Core/Utils/RagfairOfferHolder.cs @@ -15,7 +15,6 @@ public class RagfairOfferHolder( ISptLogger _logger, RagfairServerHelper _ragfairServerHelper, ProfileHelper _profileHelper, - HashUtil _hashUtil, ServerLocalisationService _serverLocalisationService, ItemHelper _itemHelper )