9 WeatherSelect::WeatherSelect()
12 addOption(
"AllRandom");
13 addOption(
"LightRain");
14 addOption(
"LightRainThunder");
15 addOption(
"HardRain");
16 addOption(
"HardRainThunder");
17 addOption(
"LightSnow");
18 addOption(
"LightSnowThunder");
19 addOption(
"HardSnow");
20 addOption(
"HardSnowThunder");
22 addOption(
"ThickFog");
24 addOption(
"SandStorm");
25 addOption(
"WaterRandom");
26 addOption(
"SnowRandom");
27 addOption(
"DesertRandom");
38 setSelectedOption(
static_cast<int>(t));
All classes and functionality used for implementing the game editor.
@ None
No weather will occur.
Helper component to select weather.
core::map::Weather::Type selectedWeather() const
Returns the currently selected weather.
static Ptr create()
Creates a new weather selector.
std::shared_ptr< WeatherSelect > Ptr
Pointer to the weather selector.
void setSelectedWeather(core::map::Weather::Type type)
Sets the currently selected weather.