1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00
OpenMW/components/esm/loadsoun.hpp

30 lines
425 B
C++
Raw Normal View History

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>
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
};
struct Sound
2010-02-18 14:58:50 +01:00
{
2012-09-17 11:37:50 +04:00
SOUNstruct mData;
std::string mId, mSound;
2010-02-18 14:58:50 +01:00
void load(ESMReader &esm);
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