openmw-tes3coop/components/esm/loadsndg.cpp
2012-09-17 11:37:50 +04:00

23 lines
419 B
C++

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