21 lines
627 B
TypeScript
21 lines
627 B
TypeScript
|
import { ITraderAssort } from "../models/eft/common/tables/ITrader";
|
||
|
|
||
|
export class TraderAssortService
|
||
|
{
|
||
|
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;
|
||
|
}
|
||
|
}
|