import { WeatherGenerator } from "https://deno.land/x/sptaki@1.2.0/generators/mod.ts";
Constructors
new
WeatherGenerator(weightedRandomHelper: WeightedRandomHelper,
logger: ILogger,
randomUtil: RandomUtil,
timeUtil: TimeUtil,
applicationContext: ApplicationContext,
configServer: ConfigServer,
Properties
protected
applicationContext: ApplicationContextprotected
configServer: ConfigServerprotected
logger: ILoggerprotected
randomUtil: RandomUtilprotected
timeUtil: TimeUtilprotected
weatherConfig: IWeatherConfigprotected
weightedRandomHelper: WeightedRandomHelperMethods
protected
getBsgFormattedInRaidTime(): stringGet server uptime seconds multiplied by a multiplier and add to current time as seconds Format to BSGs requirements
protected
getBSGFormattedTime(date: Date): stringGet current time formatted to fit BSGs requirement
protected
getRandomFloat(node: string): numberprotected
getWeightedClouds(): numberprotected
getWeightedFog(): numberprotected
getWeightedRain(): numberprotected
getWeightedWindDirection(): WindDirectionprotected
getWeightedWindSpeed(): numberprotected
setCurrentDateTime(weather: IWeather): voidSet IWeather date/time/timestamp values to now
Get current + raid datetime and format into correct BSG format and return
Return randomised Weather data with help of config/weather.json
Get the current in-raid time