Server/project/src/services/TraderAssortService.ts
Refringe 5740774a46
Apply Biome Formatting
This is the result of running `npm run format` which applies the Biome formatting rules. Rejoice!
2024-07-23 11:12:53 -04:00

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