29 lines
749 B
TypeScript
29 lines
749 B
TypeScript
|
import { inject, injectable } from "tsyringe";
|
||
|
|
||
|
import { IAchievement } from "@spt-aki/models/eft/common/tables/IAchievement";
|
||
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||
|
|
||
|
/**
|
||
|
* Logic for handling In Raid callbacks
|
||
|
*/
|
||
|
@injectable()
|
||
|
export class AchievementController
|
||
|
{
|
||
|
|
||
|
constructor(
|
||
|
@inject("WinstonLogger") protected logger: ILogger,
|
||
|
@inject("DatabaseServer") protected databaseServer: DatabaseServer,
|
||
|
)
|
||
|
{}
|
||
|
|
||
|
/**
|
||
|
* Get base achievements
|
||
|
* @param sessionID Session id
|
||
|
*/
|
||
|
public getAchievements(sessionID: string): IAchievement[]
|
||
|
{
|
||
|
return this.databaseServer.getTables().templates.achievements;
|
||
|
}
|
||
|
}
|