2011-04-06 16:11:08 +00:00
|
|
|
#include "loadbody.hpp"
|
|
|
|
|
2012-09-23 18:41:41 +00:00
|
|
|
#include "esmreader.hpp"
|
|
|
|
#include "esmwriter.hpp"
|
2012-09-17 07:37:50 +00:00
|
|
|
|
2011-04-06 16:11:08 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
|
|
|
|
void BodyPart::load(ESMReader &esm)
|
|
|
|
{
|
2012-09-17 07:37:50 +00:00
|
|
|
mModel = esm.getHNString("MODL");
|
2013-04-17 22:19:34 +00:00
|
|
|
mRace = esm.getHNString("FNAM");
|
2012-09-17 07:37:50 +00:00
|
|
|
esm.getHNT(mData, "BYDT", 4);
|
2011-04-06 16:11:08 +00:00
|
|
|
}
|
2013-09-16 10:32:35 +00:00
|
|
|
void BodyPart::save(ESMWriter &esm) const
|
2012-04-06 19:04:30 +00:00
|
|
|
{
|
2012-09-17 07:37:50 +00:00
|
|
|
esm.writeHNCString("MODL", mModel);
|
2013-04-17 22:19:34 +00:00
|
|
|
esm.writeHNCString("FNAM", mRace);
|
2012-09-17 07:37:50 +00:00
|
|
|
esm.writeHNT("BYDT", mData, 4);
|
2011-04-06 16:11:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|