1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00
OpenMW/components/esm/loadmisc.cpp

24 lines
513 B
C++

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