import { OpenZoneService } from "https://deno.land/x/sptaki@1.2.0/services/mod.ts";
Service for adding new zones to a maps OpenZones property
Constructors
new
OpenZoneService(logger: ILogger,
randomUtil: RandomUtil,
jsonUtil: JsonUtil,
databaseServer: DatabaseServer,
localisationService: LocalisationService,
configServer: ConfigServer,
Properties
protected
configServer: ConfigServerprotected
databaseServer: DatabaseServerprotected
jsonUtil: JsonUtilprotected
localisationService: LocalisationServiceprotected
locationConfig: ILocationConfigprotected
logger: ILoggerprotected
randomUtil: RandomUtilMethods
addZoneToMap(locationId: string, zoneToAdd: string): void
Add open zone to specified map
applyZoneChangesToAllMaps(): void
Add open zones to all maps found in config/location.json to db