mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
23 lines
402 B
C++
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);
|
|
}
|
|
|
|
}
|