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

27 lines
1.2 KiB
TypeScript
Raw Normal View History

2024-08-05 20:33:00 +10:00
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 { LocalisationService } from "@spt/services/LocalisationService";
import { RandomUtil } from "@spt/utils/RandomUtil";
2023-06-11 15:10:34 +10:00
/** Service for adding new zones to a maps OpenZones property */
export declare class OpenZoneService {
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 localisationService: LocalisationService;
protected configServer: ConfigServer;
protected locationConfig: ILocationConfig;
2024-08-05 20:33:00 +10:00
constructor(logger: ILogger, randomUtil: RandomUtil, databaseService: DatabaseService, localisationService: LocalisationService, configServer: ConfigServer);
2023-06-11 15:10:34 +10:00
/**
* Add open zone to specified map
* @param locationId map location (e.g. factory4_day)
* @param zoneToAdd zone to add
*/
addZoneToMap(locationId: string, zoneToAdd: string): void;
/**
* Add open zones to all maps found in config/location.json to db
*/
applyZoneChangesToAllMaps(): void;
}