1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/components/esm/loadsndg.cpp
2012-04-06 21:04:30 +02:00

21 lines
360 B
C++

#include "loadsndg.hpp"
namespace ESM
{
void SoundGenerator::load(ESMReader &esm)
{
esm.getHNT(type, "DATA", 4);
creature = esm.getHNOString("CNAM");
sound = esm.getHNOString("SNAM");
}
void SoundGenerator::save(ESMWriter &esm)
{
esm.writeHNT("DATA", type, 4);
esm.writeHNOString("CNAM", creature);
esm.writeHNOString("SNAM", sound);
}
}