1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-24 07:53:52 +00:00
openmw-tes3mp/components/esm/loadappa.cpp
2012-04-06 21:14:52 +02:00

21 lines
495 B
C++

#include "loadappa.hpp"
namespace ESM
{
void Apparatus::load(ESMReader &esm)
{
model = esm.getHNString("MODL");
name = esm.getHNString("FNAM");
esm.getHNT(data, "AADT", 16);
script = esm.getHNOString("SCRI");
icon = esm.getHNString("ITEX");
}
void Apparatus::save(ESMWriter &esm)
{
esm.writeHNString("MODL", model);
esm.writeHNString("FNAM", name);
esm.writeHNT("AADT", data, 16);
esm.writeHNOString("SCRI", script);
esm.writeHNString("ITEX", icon);
}
}