1using System.Collections.Generic;
7 [JsonObject(MemberSerialization.OptOut)]
32 public Dictionary<Condition, int>
cons =
new Dictionary<Condition, int>();
36 if (
cons.ContainsKey(con))
52 int num =
cons.Sum((KeyValuePair<Condition, int> c) => c.Value);
76 public List<Forecast>
forecasts =
new List<Forecast>();
165 return (
"weather" + condition).lang();
218 List<WeatherForecast> list =
new List<WeatherForecast>();
224 list.Add(weatherForecast);
232 for (
int i = 0; i < 10000; i++)
241 list.Remove(weatherForecast);
255 list.Add(weatherForecast);
269 for (
int i = 0; i < 10; i++)
317 Msg.
Say(
"drawRain", member);
355 Msg.
Say(
"weather_" + condition);
bool HasElement(int ele, int req=1)
int GetRaw(int offsetHours=0)
int GetElapsedMins(int rawDate)
TileInfo GetTileInfo(int gx, int gy)
Weather.Condition fixedCondition
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Weather.Condition GetRandomWeather(Date date, Weather.Condition current)
virtual bool IsSnowCovered
Dictionary< Condition, int > cons
void Add(Condition con, int h)
void SetConditionFromForecast(bool silent=false)
long GetTimeSinceLastRain()
void SetCondition(Condition condition, int _duration=20, bool silent=false)
string GetName(Condition condition)
Forecast GetForecast(Date date, Condition current)
List< WeatherForecast > GetWeatherForecast()
Condition _currentCondition
Condition CurrentCondition
void SetRandomCondition()
List< Forecast > forecasts