Server/project/src/helpers/GameEventHelper.ts

21 lines
708 B
TypeScript
Raw Normal View History

2023-03-03 16:23:46 +01:00
import { inject, injectable } from "tsyringe";
import { ConfigTypes } from "@spt-aki/models/enums/ConfigTypes";
import { ISeasonalEventConfig } from "@spt-aki/models/spt/config/ISeasonalEventConfig";
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
2023-03-03 16:23:46 +01:00
@injectable()
export class GameEventHelper
{
protected seasonalEventConfig: ISeasonalEventConfig;
constructor(
@inject("DatabaseServer") protected databaseServer: DatabaseServer,
2023-11-16 02:35:05 +01:00
@inject("ConfigServer") protected configServer: ConfigServer,
2023-03-03 16:23:46 +01:00
)
{
this.seasonalEventConfig = this.configServer.getConfig(ConfigTypes.SEASONAL_EVENT);
}
2023-11-16 02:35:05 +01:00
}