1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 02:19:55 +00:00
openmw-tes3mp/components/esm/loadbody.cpp

23 lines
400 B
C++
Raw Normal View History

#include "loadbody.hpp"
#include "esmreader.hpp"
#include "esmwriter.hpp"
2012-09-17 07:37:50 +00:00
namespace ESM
{
void BodyPart::load(ESMReader &esm)
{
2012-09-17 07:37:50 +00:00
mModel = esm.getHNString("MODL");
mRace = esm.getHNString("FNAM");
2012-09-17 07:37:50 +00:00
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", mRace);
2012-09-17 07:37:50 +00:00
esm.writeHNT("BYDT", mData, 4);
}
}