Skip to main content
The Deno 2 Release Candidate is here
Learn more
class CustomLocationWaveService
import { CustomLocationWaveService } from "https://deno.land/x/sptaki@1.2.0/services/mod.ts";

Constructors

new
CustomLocationWaveService(
logger: ILogger,
randomUtil: RandomUtil,
jsonUtil: JsonUtil,
databaseServer: DatabaseServer,
configServer: ConfigServer,
)

Properties

protected
configServer: ConfigServer
protected
databaseServer: DatabaseServer
protected
jsonUtil: JsonUtil
protected
locationConfig: ILocationConfig
protected
logger: ILogger
protected
randomUtil: RandomUtil

Methods

addBossWaveToMap(locationId: string, waveToAdd: BossLocationSpawn): void

Add a boss wave to a map

addNormalWaveToMap(locationId: string, waveToAdd: Wave): void

Add a normal bot wave to a map

Add custom boss and normal waves to maps found in config/location.json to db

clearBossWavesForMap(locationId: string): void

Clear all custom boss waves from a map

clearNormalWavesForMap(locationId: string): void

Clear all custom normal waves from a map