5740774a46
This is the result of running `npm run format` which applies the Biome formatting rules. Rejoice!
19 lines
621 B
TypeScript
19 lines
621 B
TypeScript
import { ITraderAssort } from "@spt/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;
|
|
}
|
|
}
|