2011-04-08 13:58:21 +00:00
|
|
|
#include "loadspel.hpp"
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
|
|
|
|
void Spell::load(ESMReader &esm)
|
|
|
|
{
|
|
|
|
name = esm.getHNOString("FNAM");
|
|
|
|
esm.getHNT(data, "SPDT", 12);
|
|
|
|
effects.load(esm);
|
|
|
|
}
|
2012-04-06 19:04:30 +00:00
|
|
|
void Spell::save(ESMWriter &esm)
|
|
|
|
{
|
2012-04-13 22:14:04 +00:00
|
|
|
esm.writeHNOCString("FNAM", name);
|
2012-04-06 19:04:30 +00:00
|
|
|
esm.writeHNT("SPDT", data, 12);
|
|
|
|
effects.save(esm);
|
|
|
|
}
|
2011-04-08 13:58:21 +00:00
|
|
|
|
|
|
|
}
|