OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
loadsoun.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_SOUN_H
2 #define OPENMW_ESM_SOUN_H
3 
4 #include <string>
5 
6 namespace ESM
7 {
8 
9 class ESMReader;
10 class ESMWriter;
11 
12 struct SOUNstruct
13 {
14  unsigned char mVolume, mMinRange, mMaxRange;
15 };
16 
17 struct Sound
18 {
19  static unsigned int sRecordId;
21  static std::string getRecordType() { return "Sound"; }
22 
24  std::string mId, mSound;
25 
26  void load(ESMReader &esm, bool &isDeleted);
27  void save(ESMWriter &esm, bool isDeleted = false) const;
28 
29  void blank();
31 };
32 }
33 #endif
void load(ESMReader &esm, bool &isDeleted)
Definition: loadsoun.cpp:11
void save(ESMWriter &esm, bool isDeleted=false) const
Definition: loadsoun.cpp:49
Definition: esmreader.hpp:21
unsigned char mMinRange
Definition: loadsoun.hpp:14
unsigned char mVolume
Definition: loadsoun.hpp:14
Definition: esmwriter.hpp:17
void blank()
Set record to default state (does not touch the ID/index).
Definition: loadsoun.cpp:63
SOUNstruct mData
Definition: loadsoun.hpp:23
unsigned char mMaxRange
Definition: loadsoun.hpp:14
std::string mSound
Definition: loadsoun.hpp:24
Definition: loadsoun.hpp:17
static std::string getRecordType()
Return a string descriptor for this record type. Currently used for debugging / error logs only...
Definition: loadsoun.hpp:21
std::string mId
Definition: loadsoun.hpp:24
Definition: loadsoun.hpp:12
static unsigned int sRecordId
Definition: loadsoun.hpp:19