openmw/components/esm/loadbody.cpp

23 lines
402 B
C++
Raw Normal View History

#include "loadbody.hpp"
2012-09-17 11:37:50 +04:00
#include "esm_reader.hpp"
#include "esm_writer.hpp"
namespace ESM
{
void BodyPart::load(ESMReader &esm)
{
2012-09-17 11:37:50 +04:00
mModel = esm.getHNString("MODL");
mName = esm.getHNString("FNAM");
esm.getHNT(mData, "BYDT", 4);
}
void BodyPart::save(ESMWriter &esm)
{
2012-09-17 11:37:50 +04:00
esm.writeHNCString("MODL", mModel);
esm.writeHNCString("FNAM", mName);
esm.writeHNT("BYDT", mData, 4);
}
}