2015-01-21 22:35:09 +00:00
|
|
|
#include "importgame.hpp"
|
|
|
|
|
2022-01-22 14:58:41 +00:00
|
|
|
#include <components/esm3/esmreader.hpp>
|
2015-01-21 22:35:09 +00:00
|
|
|
|
|
|
|
namespace ESSImport
|
|
|
|
{
|
|
|
|
|
|
|
|
void GAME::load(ESM::ESMReader& esm)
|
2015-01-27 21:57:30 +00:00
|
|
|
{
|
|
|
|
esm.getSubNameIs("GMDT");
|
|
|
|
esm.getSubHeader();
|
2023-12-17 13:03:45 +00:00
|
|
|
bool hasSecundaPhase = esm.getSubSize() == 96;
|
|
|
|
esm.getT(mGMDT.mCellName);
|
|
|
|
esm.getT(mGMDT.mFogColour);
|
|
|
|
esm.getT(mGMDT.mFogDensity);
|
|
|
|
esm.getT(mGMDT.mCurrentWeather);
|
|
|
|
esm.getT(mGMDT.mNextWeather);
|
|
|
|
esm.getT(mGMDT.mWeatherTransition);
|
|
|
|
esm.getT(mGMDT.mTimeOfNextTransition);
|
|
|
|
esm.getT(mGMDT.mMasserPhase);
|
|
|
|
if (hasSecundaPhase)
|
|
|
|
esm.getT(mGMDT.mSecundaPhase);
|
2015-01-27 21:57:30 +00:00
|
|
|
|
2015-01-24 16:15:25 +00:00
|
|
|
mGMDT.mWeatherTransition &= (0x000000ff);
|
|
|
|
mGMDT.mSecundaPhase &= (0x000000ff);
|
|
|
|
mGMDT.mMasserPhase &= (0x000000ff);
|
2015-01-21 22:35:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|