Files
SPT-Server-Build/Core/Services/TraderAssortService.cs
T
CWX 3f46db3cd6 TraderAssortService Complete (#48)
* TraderAssortService Complete

* Add debugging ability to VS (puke) users
2025-01-13 10:10:07 +00:00

26 lines
733 B
C#

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