Server/project/src/services/TraderAssortService.ts
2023-03-03 15:23:46 +00:00

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;
}
}