2010-02-18 13:58:50 +00:00
|
|
|
#ifndef _ESM_SOUN_H
|
|
|
|
#define _ESM_SOUN_H
|
|
|
|
|
2012-09-17 07:37:50 +00:00
|
|
|
#include <string>
|
|
|
|
|
2012-04-08 09:51:52 +00:00
|
|
|
#include "record.hpp"
|
2010-02-18 13:58:50 +00:00
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
2010-02-19 13:23:22 +00:00
|
|
|
|
2010-02-18 13:58:50 +00:00
|
|
|
struct SOUNstruct
|
|
|
|
{
|
2012-09-17 07:37:50 +00:00
|
|
|
unsigned char mVolume, mMinRange, mMaxRange;
|
2010-02-18 13:58:50 +00:00
|
|
|
};
|
|
|
|
|
2012-04-08 09:51:52 +00:00
|
|
|
struct Sound : public Record
|
2010-02-18 13:58:50 +00:00
|
|
|
{
|
2012-09-17 07:37:50 +00:00
|
|
|
SOUNstruct mData;
|
|
|
|
std::string mSound;
|
2010-02-18 13:58:50 +00:00
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
void load(ESMReader &esm);
|
2012-04-06 19:04:30 +00:00
|
|
|
void save(ESMWriter &esm);
|
2012-04-08 09:51:52 +00:00
|
|
|
|
|
|
|
int getName() { return REC_SOUN; }
|
2010-02-18 13:58:50 +00:00
|
|
|
};
|
2010-02-19 13:23:22 +00:00
|
|
|
}
|
2010-02-18 13:58:50 +00:00
|
|
|
#endif
|