2012-09-23 22:11:08 +04:00
|
|
|
#ifndef OPENMW_ESM_SOUN_H
|
|
|
|
#define OPENMW_ESM_SOUN_H
|
2010-02-18 14:58:50 +01:00
|
|
|
|
2012-09-17 11:37:50 +04:00
|
|
|
#include <string>
|
|
|
|
|
2011-04-08 17:58:21 +04:00
|
|
|
namespace ESM
|
|
|
|
{
|
2010-02-19 14:23:22 +01:00
|
|
|
|
2012-10-01 00:51:54 +04:00
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
2010-02-18 14:58:50 +01:00
|
|
|
struct SOUNstruct
|
|
|
|
{
|
2012-09-17 11:37:50 +04:00
|
|
|
unsigned char mVolume, mMinRange, mMaxRange;
|
2010-02-18 14:58:50 +01:00
|
|
|
};
|
|
|
|
|
2012-09-30 23:34:53 +04:00
|
|
|
struct Sound
|
2010-02-18 14:58:50 +01:00
|
|
|
{
|
2012-09-17 11:37:50 +04:00
|
|
|
SOUNstruct mData;
|
2012-10-07 21:24:47 +04:00
|
|
|
std::string mId, mSound;
|
2010-02-18 14:58:50 +01:00
|
|
|
|
2011-04-08 17:58:21 +04:00
|
|
|
void load(ESMReader &esm);
|
2012-04-06 21:04:30 +02:00
|
|
|
void save(ESMWriter &esm);
|
2013-04-06 21:21:10 +02:00
|
|
|
|
|
|
|
void blank();
|
|
|
|
///< Set record to default state (does not touch the ID/index).
|
2010-02-18 14:58:50 +01:00
|
|
|
};
|
2010-02-19 14:23:22 +01:00
|
|
|
}
|
2010-02-18 14:58:50 +01:00
|
|
|
#endif
|