2011-04-08 13:58:21 +00:00
|
|
|
#include "loadsndg.hpp"
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
|
|
|
|
void SoundGenerator::load(ESMReader &esm)
|
|
|
|
{
|
|
|
|
esm.getHNT(type, "DATA", 4);
|
|
|
|
|
|
|
|
creature = esm.getHNOString("CNAM");
|
|
|
|
sound = esm.getHNOString("SNAM");
|
|
|
|
}
|
2012-04-06 19:04:30 +00:00
|
|
|
void SoundGenerator::save(ESMWriter &esm)
|
|
|
|
{
|
|
|
|
esm.writeHNT("DATA", type, 4);
|
|
|
|
esm.writeHNOString("CNAM", creature);
|
|
|
|
esm.writeHNOString("SNAM", sound);
|
|
|
|
}
|
2011-04-08 13:58:21 +00:00
|
|
|
|
|
|
|
}
|