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();
|
|
|
|
if (esm.getSubSize() == 92)
|
|
|
|
{
|
|
|
|
esm.getExact(&mGMDT, 92);
|
|
|
|
mGMDT.mSecundaPhase = 0;
|
|
|
|
}
|
|
|
|
else if (esm.getSubSize() == 96)
|
|
|
|
{
|
|
|
|
esm.getT(mGMDT);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
esm.fail("unexpected subrecord size for GAME.GMDT");
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
}
|