2011-04-06 16:11:08 +00:00
|
|
|
#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");
|
|
|
|
}
|
2012-04-06 19:04:30 +00:00
|
|
|
void Apparatus::save(ESMWriter &esm)
|
|
|
|
{
|
2012-04-13 22:14:04 +00:00
|
|
|
esm.writeHNCString("MODL", model);
|
|
|
|
esm.writeHNCString("FNAM", name);
|
2012-04-06 19:04:30 +00:00
|
|
|
esm.writeHNT("AADT", data, 16);
|
2012-04-13 22:14:04 +00:00
|
|
|
esm.writeHNOCString("SCRI", script);
|
|
|
|
esm.writeHNCString("ITEX", icon);
|
2012-04-06 19:04:30 +00:00
|
|
|
}
|
2011-04-06 16:11:08 +00:00
|
|
|
}
|