OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
loadsndg.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_SNDG_H
2 #define OPENMW_ESM_SNDG_H
3 
4 #include <string>
5 
6 namespace ESM
7 {
8 
9 class ESMReader;
10 class ESMWriter;
11 
12 /*
13  * Sound generator. This describes the sounds a creature make.
14  */
15 
17 {
18  static unsigned int sRecordId;
20  static std::string getRecordType() { return "SoundGenerator"; }
21 
22  enum Type
23  {
24  LeftFoot = 0,
25  RightFoot = 1,
26  SwimLeft = 2,
27  SwimRight = 3,
28  Moan = 4,
29  Roar = 5,
30  Scream = 6,
31  Land = 7
32  };
33 
34  // Type
35  int mType;
36 
37  std::string mId, mCreature, mSound;
38 
39  void load(ESMReader &esm, bool &isDeleted);
40  void save(ESMWriter &esm, bool isDeleted = false) const;
41 
42  void blank();
43 };
44 }
45 #endif
int mType
Definition: loadsndg.hpp:35
Definition: esmreader.hpp:21
Type
Definition: loadsndg.hpp:22
Definition: loadsndg.hpp:16
Definition: loadsndg.hpp:27
Definition: loadland.hpp:20
Definition: loadsndg.hpp:28
Definition: esmwriter.hpp:17
Definition: loadsndg.hpp:26
void blank()
Definition: loadsndg.cpp:67
Definition: loadsndg.hpp:30
Definition: loadsndg.hpp:24
static unsigned int sRecordId
Definition: loadsndg.hpp:18
void load(ESMReader &esm, bool &isDeleted)
Definition: loadsndg.cpp:11
std::string mCreature
Definition: loadsndg.hpp:37
std::string mId
Definition: loadsndg.hpp:37
Definition: loadsndg.hpp:29
std::string mSound
Definition: loadsndg.hpp:37
void save(ESMWriter &esm, bool isDeleted=false) const
Definition: loadsndg.cpp:51
Definition: loadsndg.hpp:25
static std::string getRecordType()
Return a string descriptor for this record type. Currently used for debugging / error logs only...
Definition: loadsndg.hpp:20