1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00
OpenMW/components/esm/loadbody.cpp

23 lines
402 B
C++
Raw Normal View History

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