OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
weatherstate.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_WEATHERSTATE_H
2 #define OPENMW_ESM_WEATHERSTATE_H
3 
4 #include <map>
5 #include <string>
6 #include <vector>
7 
8 namespace ESM
9 {
10  class ESMReader;
11  class ESMWriter;
12 
14  {
15  int mWeather;
16  std::vector<char> mChances;
17  };
18 
19  struct WeatherState
20  {
21  std::string mCurrentRegion;
22  float mTimePassed;
29  std::map<std::string, RegionWeatherState> mRegions;
30 
31  void load(ESMReader& esm);
32  void save(ESMWriter& esm) const;
33  };
34 }
35 
36 #endif
Definition: esmreader.hpp:21
int mNextWeather
Definition: weatherstate.hpp:27
std::string mCurrentRegion
Definition: weatherstate.hpp:21
Definition: esmwriter.hpp:17
void save(ESMWriter &esm) const
Definition: weatherstate.cpp:50
bool mFastForward
Definition: weatherstate.hpp:23
float mWeatherUpdateTime
Definition: weatherstate.hpp:24
std::vector< char > mChances
Definition: weatherstate.hpp:16
float mTimePassed
Definition: weatherstate.hpp:22
Definition: weatherstate.hpp:19
int mWeather
Definition: weatherstate.hpp:15
Definition: weatherstate.hpp:13
std::map< std::string, RegionWeatherState > mRegions
Definition: weatherstate.hpp:29
float mTransitionFactor
Definition: weatherstate.hpp:25
int mCurrentWeather
Definition: weatherstate.hpp:26
int mQueuedWeather
Definition: weatherstate.hpp:28
void load(ESMReader &esm)
Definition: weatherstate.cpp:23