openmw-tes3coop/components/esm/loadbody.cpp
2012-09-17 11:37:50 +04:00

22 lines
402 B
C++

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