Server/project/src/helpers/GameEventHelper.ts

18 lines
687 B
TypeScript
Raw Normal View History

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