mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-28 18:45:33 +00:00
19 lines
343 B
C++
19 lines
343 B
C++
#include "loadbody.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
|
|
void BodyPart::load(ESMReader &esm)
|
|
{
|
|
model = esm.getHNString("MODL");
|
|
name = esm.getHNString("FNAM");
|
|
esm.getHNT(data, "BYDT", 4);
|
|
}
|
|
void BodyPart::save(ESMWriter &esm)
|
|
{
|
|
esm.writeHNCString("MODL", model);
|
|
esm.writeHNCString("FNAM", name);
|
|
esm.writeHNT("BYDT", data, 4);
|
|
}
|
|
|
|
}
|