1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00
OpenMW/components/esm/loadltex.cpp

23 lines
408 B
C++
Raw Normal View History

#include "loadltex.hpp"
#include "esmreader.hpp"
#include "esmwriter.hpp"
#include "defs.hpp"
2012-09-17 11:37:50 +04:00
namespace ESM
{
unsigned int LandTexture::sRecordId = REC_LTEX;
void LandTexture::load(ESMReader &esm)
{
2012-09-17 11:37:50 +04:00
esm.getHNT(mIndex, "INTV");
mTexture = esm.getHNString("DATA");
}
void LandTexture::save(ESMWriter &esm) const
{
2012-09-17 11:37:50 +04:00
esm.writeHNT("INTV", mIndex);
esm.writeHNCString("DATA", mTexture);
}
}