2011-04-06 16:11:08 +00:00
|
|
|
#include "loadacti.hpp"
|
|
|
|
|
2012-09-17 07:37:50 +00:00
|
|
|
#include "esm_reader.hpp"
|
|
|
|
#include "esm_writer.hpp"
|
|
|
|
|
2011-04-06 16:11:08 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
void Activator::load(ESMReader &esm)
|
|
|
|
{
|
2012-09-17 07:37:50 +00:00
|
|
|
mModel = esm.getHNString("MODL");
|
|
|
|
mName = esm.getHNString("FNAM");
|
|
|
|
mScript = esm.getHNOString("SCRI");
|
2011-04-06 16:11:08 +00:00
|
|
|
}
|
2012-04-06 19:04:30 +00:00
|
|
|
void Activator::save(ESMWriter &esm)
|
|
|
|
{
|
2012-09-17 07:37:50 +00:00
|
|
|
esm.writeHNCString("MODL", mModel);
|
|
|
|
esm.writeHNCString("FNAM", mName);
|
|
|
|
esm.writeHNOCString("SCRI", mScript);
|
2011-04-06 16:11:08 +00:00
|
|
|
}
|
|
|
|
}
|