Server/project/src/controllers/AchievementController.ts

29 lines
790 B
TypeScript
Raw Normal View History

2023-12-27 19:34:35 +01:00
import { inject, injectable } from "tsyringe";
import { IGetAchievementsResponse } from "@spt-aki/models/eft/profile/IGetAchievementsResponse";
2023-12-27 19:34:35 +01:00
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): IGetAchievementsResponse
2023-12-27 19:34:35 +01:00
{
return {elements: this.databaseServer.getTables().templates.achievements };
2023-12-27 19:34:35 +01:00
}
}