Peoplemon  0.1.0
Peoplemon 3 game source documentation
WeatherSelect.hpp
Go to the documentation of this file.
1 #ifndef EDITOR_COMPONENTS_WEATHERSELECT_HPP
2 #define EDITOR_COMPONENTS_WEATHERSELECT_HPP
3 
4 #include <BLIB/Interfaces/GUI.hpp>
5 #include <Core/Maps/Weather.hpp>
6 
7 namespace editor
8 {
9 namespace component
10 {
17 class WeatherSelect : public bl::gui::ComboBox {
18 public:
20  using Ptr = std::shared_ptr<WeatherSelect>;
21 
26  static Ptr create();
27 
33 
39 
40 private:
41  WeatherSelect();
42 };
43 
44 } // namespace component
45 } // namespace editor
46 
47 #endif
All classes and functionality used for implementing the game editor.
Definition: Tile.hpp:11
Type
The type of weather.
Definition: Weather.hpp:38
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.