forked from mirror/openmw-tes3mp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
478 B
C++
29 lines
478 B
C++
#include "loadltex.hpp"
|
|
|
|
#include "esmreader.hpp"
|
|
#include "esmwriter.hpp"
|
|
#include "defs.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
unsigned int LandTexture::sRecordId = REC_LTEX;
|
|
|
|
void LandTexture::load(ESMReader &esm)
|
|
{
|
|
esm.getHNT(mIndex, "INTV");
|
|
mTexture = esm.getHNString("DATA");
|
|
}
|
|
void LandTexture::save(ESMWriter &esm) const
|
|
{
|
|
esm.writeHNT("INTV", mIndex);
|
|
esm.writeHNCString("DATA", mTexture);
|
|
}
|
|
|
|
void LandTexture::blank()
|
|
{
|
|
mTexture.clear();
|
|
mIndex = -1;
|
|
}
|
|
|
|
}
|