two-slot-extended-mags/types/services/CustomLocationWaveService.d.ts

41 lines
1.6 KiB
TypeScript
Raw Normal View History

2024-08-05 20:33:00 +10:00
import { BossLocationSpawn, Wave } from "@spt/models/eft/common/ILocationBase";
import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig";
import { ILogger } from "@spt/models/spt/utils/ILogger";
import { ConfigServer } from "@spt/servers/ConfigServer";
import { DatabaseService } from "@spt/services/DatabaseService";
import { RandomUtil } from "@spt/utils/RandomUtil";
2023-06-11 15:10:34 +10:00
export declare class CustomLocationWaveService {
protected logger: ILogger;
protected randomUtil: RandomUtil;
2024-08-05 20:33:00 +10:00
protected databaseService: DatabaseService;
2023-06-11 15:10:34 +10:00
protected configServer: ConfigServer;
protected locationConfig: ILocationConfig;
2024-08-05 20:33:00 +10:00
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService, configServer: ConfigServer);
2023-06-11 15:10:34 +10:00
/**
* Add a boss wave to a map
* @param locationId e.g. factory4_day, bigmap
* @param waveToAdd Boss wave to add to map
*/
addBossWaveToMap(locationId: string, waveToAdd: BossLocationSpawn): void;
/**
* Add a normal bot wave to a map
* @param locationId e.g. factory4_day, bigmap
* @param waveToAdd Wave to add to map
*/
addNormalWaveToMap(locationId: string, waveToAdd: Wave): void;
/**
* Clear all custom boss waves from a map
* @param locationId e.g. factory4_day, bigmap
*/
clearBossWavesForMap(locationId: string): void;
/**
* Clear all custom normal waves from a map
* @param locationId e.g. factory4_day, bigmap
*/
clearNormalWavesForMap(locationId: string): void;
/**
* Add custom boss and normal waves to maps found in config/location.json to db
*/
applyWaveChangesToAllMaps(): void;
}