From 3f46db3cd68decdea3c3ee840ac8b8ed6e825b7c Mon Sep 17 00:00:00 2001 From: CWX <91418059+CWXDEV@users.noreply.github.com> Date: Mon, 13 Jan 2025 10:10:07 +0000 Subject: [PATCH] TraderAssortService Complete (#48) * TraderAssortService Complete * Add debugging ability to VS (puke) users --- Core/Services/TraderAssortService.cs | 6 ++++-- Server/Properties/launchSettings.json | 8 ++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 Server/Properties/launchSettings.json diff --git a/Core/Services/TraderAssortService.cs b/Core/Services/TraderAssortService.cs index 388dc842..fbd7c694 100644 --- a/Core/Services/TraderAssortService.cs +++ b/Core/Services/TraderAssortService.cs @@ -6,9 +6,11 @@ namespace Core.Services; [Injectable(InjectionType.Singleton)] public class TraderAssortService { + private Dictionary _pristineTraderAssorts = new(); + public TraderAssort GetPristineTraderAssort(string traderId) { - throw new NotImplementedException(); + return _pristineTraderAssorts[traderId]; } /// @@ -18,6 +20,6 @@ public class TraderAssortService /// Assorts to store public void SetPristineTraderAssort(string traderId, TraderAssort assort) { - throw new NotImplementedException(); + _pristineTraderAssorts[traderId] = assort; } } diff --git a/Server/Properties/launchSettings.json b/Server/Properties/launchSettings.json new file mode 100644 index 00000000..334777e5 --- /dev/null +++ b/Server/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "Spt Server Debug": { + "commandName": "Project", + "hotReloadEnabled": false + } + } +}