2023-03-03 16:23:46 +01:00
|
|
|
import { inject, injectable } from "tsyringe";
|
|
|
|
|
2023-10-19 19:21:17 +02:00
|
|
|
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
|
|
|
}
|