1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-04 02:41:19 +00:00
OpenMW/components/esm/loadbody.cpp
2012-09-17 11:37:50 +04:00

23 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);
}
}