1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00
OpenMW/components/esm/loadsoun.hpp

28 lines
365 B
C++
Raw Normal View History

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>
#include "record.hpp"
2010-02-18 13:58:50 +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
};
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
void load(ESMReader &esm);
void save(ESMWriter &esm);
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