1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-24 22:53:51 +00:00
openmw-tes3mp/components/esm/loadmisc.cpp

24 lines
513 B
C++
Raw Normal View History

#include "loadmisc.hpp"
namespace ESM
{
void Miscellaneous::load(ESMReader &esm)
{
model = esm.getHNString("MODL");
name = esm.getHNOString("FNAM");
esm.getHNT(data, "MCDT", 12);
script = esm.getHNOString("SCRI");
icon = esm.getHNOString("ITEX");
}
void Miscellaneous::save(ESMWriter &esm)
{
esm.writeHNCString("MODL", model);
esm.writeHNOCString("FNAM", name);
esm.writeHNT("MCDT", data, 12);
esm.writeHNOCString("SCRI", script);
esm.writeHNOCString("ITEX", icon);
}
}