mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 08:56:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
	
		
			742 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			742 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_ESM_WEATHERSTATE_H
 | |
| #define OPENMW_ESM_WEATHERSTATE_H
 | |
| 
 | |
| #include <map>
 | |
| #include <string>
 | |
| #include <vector>
 | |
| 
 | |
| namespace ESM
 | |
| {
 | |
|     class ESMReader;
 | |
|     class ESMWriter;
 | |
| 
 | |
|     struct RegionWeatherState
 | |
|     {
 | |
|         int mWeather;
 | |
|         std::vector<char> mChances;
 | |
|     };
 | |
| 
 | |
|     struct WeatherState
 | |
|     {
 | |
|         std::string mCurrentRegion;
 | |
|         float mTimePassed;
 | |
|         bool mFastForward;
 | |
|         float mWeatherUpdateTime;
 | |
|         float mTransitionFactor;
 | |
|         int mCurrentWeather;
 | |
|         int mNextWeather;
 | |
|         int mQueuedWeather;
 | |
|         std::map<std::string, RegionWeatherState> mRegions;
 | |
| 
 | |
|         void load(ESMReader& esm);
 | |
|         void save(ESMWriter& esm) const;
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif
 |