2011-04-06 20:11:08 +04: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 21:04:30 +02:00
|
|
|
void Apparatus::save(ESMWriter &esm)
|
|
|
|
{
|
|
|
|
esm.writeHNString("MODL", model);
|
|
|
|
esm.writeHNString("FNAM", name);
|
|
|
|
esm.writeHNT("AADT", data, 16);
|
2012-04-06 21:14:52 +02:00
|
|
|
esm.writeHNOString("SCRI", script);
|
2012-04-06 21:04:30 +02:00
|
|
|
esm.writeHNString("ITEX", icon);
|
|
|
|
}
|
2011-04-06 20:11:08 +04:00
|
|
|
}
|