From 327ad33bb6f99849aefd05fbe734999405f42dc9 Mon Sep 17 00:00:00 2001 From: Chomp Date: Wed, 11 Jun 2025 15:05:12 +0100 Subject: [PATCH] Added comments Made fields readonly --- .../Helpers/Dialogue/Commando/SptCommandoCommands.cs | 4 ++-- Libraries/SPTarkov.Server.Core/Services/DatabaseService.cs | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommandoCommands.cs b/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommandoCommands.cs index eb608cc0..547a8809 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommandoCommands.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/Dialogue/Commando/SptCommandoCommands.cs @@ -11,8 +11,8 @@ namespace SPTarkov.Server.Core.Helpers.Dialog.Commando; [Injectable] public class SptCommandoCommands : IChatCommand { - protected LocalisationService _localisationService; - protected IDictionary _sptCommands; + protected readonly LocalisationService _localisationService; + protected readonly IDictionary _sptCommands; public SptCommandoCommands( ConfigServer configServer, diff --git a/Libraries/SPTarkov.Server.Core/Services/DatabaseService.cs b/Libraries/SPTarkov.Server.Core/Services/DatabaseService.cs index 02e2b704..85c44072 100644 --- a/Libraries/SPTarkov.Server.Core/Services/DatabaseService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/DatabaseService.cs @@ -15,6 +15,9 @@ using LogLevel = SPTarkov.Server.Core.Models.Spt.Logging.LogLevel; namespace SPTarkov.Server.Core.Services; +/// +/// Provides access to the servers database, these are in-memory representations of the .JSON files stored inside `Libraries\SPTarkov.Server.Assets\Assets\database` +/// [Injectable(InjectionType.Singleton)] public class DatabaseService( ISptLogger _logger,