2023-10-19 19:21:17 +02:00
|
|
|
import { ITraderAssort } from "@spt-aki/models/eft/common/tables/ITrader";
|
2023-03-03 16:23:46 +01:00
|
|
|
|
2023-11-16 02:35:05 +01:00
|
|
|
export class TraderAssortService
|
2023-03-03 16:23:46 +01:00
|
|
|
{
|
|
|
|
protected pristineTraderAssorts: Record<string, ITraderAssort> = {};
|
|
|
|
|
|
|
|
public getPristineTraderAssort(traderId: string): ITraderAssort
|
|
|
|
{
|
|
|
|
return this.pristineTraderAssorts[traderId];
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Store trader assorts inside a class property
|
|
|
|
* @param traderId Traderid to store assorts against
|
|
|
|
* @param assort Assorts to store
|
|
|
|
*/
|
|
|
|
public setPristineTraderAssort(traderId: string, assort: ITraderAssort): void
|
|
|
|
{
|
|
|
|
this.pristineTraderAssorts[traderId] = assort;
|
|
|
|
}
|
2023-11-16 02:35:05 +01:00
|
|
|
}
|