Server/project/src/services/TraderAssortService.ts

22 lines
633 B
TypeScript
Raw Normal View History

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
}