OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
loadappa.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_APPA_H
2 #define OPENMW_ESM_APPA_H
3 
4 #include <string>
5 
6 namespace ESM
7 {
8 
9 class ESMReader;
10 class ESMWriter;
11 
12 /*
13  * Alchemist apparatus
14  */
15 
16 struct Apparatus
17 {
18  static unsigned int sRecordId;
20  static std::string getRecordType() { return "Apparatus"; }
21 
22  enum AppaType
23  {
25  Alembic = 1,
27  Retort = 3
28  };
29 
30  struct AADTstruct
31  {
32  int mType;
33  float mQuality;
34  float mWeight;
35  int mValue;
36  };
37 
39  std::string mId, mModel, mIcon, mScript, mName;
40 
41  void load(ESMReader &esm, bool &isDeleted);
42  void save(ESMWriter &esm, bool isDeleted = false) const;
43 
44  void blank();
46 };
47 }
48 #endif
Definition: loadappa.hpp:27
Definition: esmreader.hpp:21
Definition: loadappa.hpp:24
static unsigned int sRecordId
Definition: loadappa.hpp:18
int mValue
Definition: loadappa.hpp:35
static std::string getRecordType()
Return a string descriptor for this record type. Currently used for debugging / error logs only...
Definition: loadappa.hpp:20
void load(ESMReader &esm, bool &isDeleted)
Definition: loadappa.cpp:11
Definition: esmwriter.hpp:17
Definition: loadappa.hpp:16
float mQuality
Definition: loadappa.hpp:33
std::string mName
Definition: loadappa.hpp:39
AppaType
Definition: loadappa.hpp:22
float mWeight
Definition: loadappa.hpp:34
Definition: loadappa.hpp:25
AADTstruct mData
Definition: loadappa.hpp:38
void save(ESMWriter &esm, bool isDeleted=false) const
Definition: loadappa.cpp:58
void blank()
Set record to default state (does not touch the ID).
Definition: loadappa.cpp:75
std::string mIcon
Definition: loadappa.hpp:39
Definition: loadappa.hpp:26
std::string mId
Definition: loadappa.hpp:39
Definition: loadappa.hpp:30
std::string mScript
Definition: loadappa.hpp:39
int mType
Definition: loadappa.hpp:32
std::string mModel
Definition: loadappa.hpp:39