418d9f2a8f
- Ability to use @spt-aki path alias on the whole project. - Swapped all imports from relative paths, for imports using the path alias. Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/157 Co-authored-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com> Co-committed-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
21 lines
633 B
TypeScript
21 lines
633 B
TypeScript
import { ITraderAssort } from "@spt-aki/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;
|
|
}
|
|
} |