forked from mirror/openmw-tes3mp
23 lines
408 B
C++
23 lines
408 B
C++
#include "loadsoun.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
|
|
void Sound::load(ESMReader &esm)
|
|
{
|
|
sound = esm.getHNString("FNAM");
|
|
esm.getHNT(data, "DATA", 3);
|
|
/*
|
|
cout << "vol=" << (int)data.volume
|
|
<< " min=" << (int)data.minRange
|
|
<< " max=" << (int)data.maxRange
|
|
<< endl;
|
|
*/
|
|
}
|
|
void Sound::save(ESMWriter &esm)
|
|
{
|
|
esm.writeHNCString("FNAM", sound);
|
|
esm.writeHNT("DATA", data, 3);
|
|
}
|
|
|
|
}
|