import { LocationController } from "https://deno.land/x/sptaki@1.2.0/controllers/mod.ts";
Constructors
new
LocationController(jsonUtil: JsonUtil,
hashUtil: HashUtil,
randomUtil: RandomUtil,
weightedRandomHelper: WeightedRandomHelper,
logger: ILogger,
locationGenerator: LocationGenerator,
localisationService: LocalisationService,
raidTimeAdjustmentService: RaidTimeAdjustmentService,
itemFilterService: ItemFilterService,
lootGenerator: LootGenerator,
databaseServer: DatabaseServer,
timeUtil: TimeUtil,
configServer: ConfigServer,
applicationContext: ApplicationContext,
Properties
protected
airdropConfig: IAirdropConfigprotected
applicationContext: ApplicationContextprotected
configServer: ConfigServerprotected
databaseServer: DatabaseServerprotected
hashUtil: HashUtilprotected
itemFilterService: ItemFilterServiceprotected
jsonUtil: JsonUtilprotected
localisationService: LocalisationServiceprotected
locationConfig: ILocationConfigprotected
locationGenerator: LocationGeneratorprotected
logger: ILoggerprotected
lootGenerator: LootGeneratorprotected
raidTimeAdjustmentService: RaidTimeAdjustmentServiceprotected
randomUtil: RandomUtilprotected
timeUtil: TimeUtilprotected
weightedRandomHelper: WeightedRandomHelperMethods
protected
chooseAirdropType(): AirdropTypeEnumRandomly pick a type of airdrop loot using weighted values from config
protected
generate(name: string): ILocationBaseGenerate a maps base location with loot
protected
getAirdropLootConfigByType(airdropType: AirdropTypeEnum): LootRequestGet the configuration for a specific type of airdrop
generateAll(sessionId: string): ILocationsGenerateAllResponse
Handle client/locations Get all maps base location properties without loot data
get(sessionId: string, request: IGetLocationRequestData): ILocationBase
Handle client/location/getLocalloot Get a location (map) with generated loot data
Handle client/location/getAirdropLoot Get loot for an airdrop container Generates it randomly based on config/airdrop.json values