Skip to main content
The Deno 2 Release Candidate is here
Learn more
class OpenZoneService
import { OpenZoneService } from "https://deno.land/x/sptaki@1.2.0/services/OpenZoneService.d.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: ConfigServer
protected
databaseServer: DatabaseServer
protected
jsonUtil: JsonUtil
protected
localisationService: LocalisationService
protected
locationConfig: ILocationConfig
protected
logger: ILogger
protected
randomUtil: RandomUtil

Methods

addZoneToMap(locationId: string, zoneToAdd: string): void

Add open zone to specified map

Add open zones to all maps found in config/location.json to db