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

26 lines
465 B
C++

#include "loadsoun.hpp"
#include "esm_reader.hpp"
#include "esm_writer.hpp"
namespace ESM
{
void Sound::load(ESMReader &esm)
{
mSound = esm.getHNString("FNAM");
esm.getHNT(mData, "DATA", 3);
/*
cout << "vol=" << (int)data.volume
<< " min=" << (int)data.minRange
<< " max=" << (int)data.maxRange
<< endl;
*/
}
void Sound::save(ESMWriter &esm)
{
esm.writeHNCString("FNAM", mSound);
esm.writeHNT("DATA", mData, 3);
}
}