1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00
OpenMW/apps/essimporter/importcellref.cpp

29 lines
563 B
C++
Raw Normal View History

#include "importcellref.hpp"
#include <components/esm/esmreader.hpp>
namespace ESSImport
{
void CellRef::load(ESM::ESMReader &esm)
{
esm.getHNT(mRefNum.mIndex, "FRMR"); // TODO: adjust RefNum
mIndexedRefId = esm.getHNString("NAME");
esm.getHNT(mACDT, "ACDT");
ACSC acsc;
esm.getHNOT(acsc, "ACSC");
esm.getHNOT(acsc, "ACSL");
if (esm.isNextSub("CRED"))
esm.skipHSub();
if (esm.isNextSub("ND3D"))
esm.skipHSub();
esm.getHNOT(mPos, "DATA", 24);
}
}