using Core.Annotations; using Core.Models.Eft.Common.Tables; namespace Core.Services; [Injectable(InjectionType.Singleton)] public class TraderAssortService { private Dictionary _pristineTraderAssorts = new(); public TraderAssort? GetPristineTraderAssort(string traderId) { _pristineTraderAssorts.TryGetValue(traderId, out var result); return result; } /// /// Store trader assorts inside a class property /// /// Traderid to store assorts against /// Assorts to store public void SetPristineTraderAssort(string traderId, TraderAssort assort) { _pristineTraderAssorts[traderId] = assort; } }