2015-01-21 22:35:09 +00:00
|
|
|
#ifndef OPENMW_ESSIMPORT_GAME_H
|
|
|
|
#define OPENMW_ESSIMPORT_GAME_H
|
|
|
|
|
2023-12-17 14:21:12 +00:00
|
|
|
#include <cstdint>
|
|
|
|
|
2015-01-21 22:35:09 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace ESSImport
|
|
|
|
{
|
|
|
|
|
|
|
|
/// Weather data
|
|
|
|
struct GAME
|
|
|
|
{
|
|
|
|
struct GMDT
|
|
|
|
{
|
2018-09-08 15:54:22 +00:00
|
|
|
char mCellName[64]{};
|
2023-12-17 13:03:45 +00:00
|
|
|
int32_t mFogColour{ 0 };
|
2018-09-08 15:54:22 +00:00
|
|
|
float mFogDensity{ 0.f };
|
2023-12-17 13:03:45 +00:00
|
|
|
int32_t mCurrentWeather{ 0 }, mNextWeather{ 0 };
|
|
|
|
int32_t mWeatherTransition{ 0 }; // 0-100 transition between weathers, top 3 bytes may be garbage
|
2018-09-08 15:54:22 +00:00
|
|
|
float mTimeOfNextTransition{ 0.f }; // weather changes when gamehour == timeOfNextTransition
|
2023-12-17 13:03:45 +00:00
|
|
|
int32_t mMasserPhase{ 0 }, mSecundaPhase{ 0 }; // top 3 bytes may be garbage
|
2015-01-21 22:35:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
GMDT mGMDT;
|
|
|
|
|
|
|
|
void load(ESM::ESMReader& esm);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|