OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
loadclot.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_CLOT_H
2 #define OPENMW_ESM_CLOT_H
3 
4 #include <string>
5 
6 #include "loadarmo.hpp"
7 
8 namespace ESM
9 {
10 
11 class ESMReader;
12 class ESMWriter;
13 
14 /*
15  * Clothing
16  */
17 
18 struct Clothing
19 {
20  static unsigned int sRecordId;
22  static std::string getRecordType() { return "Clothing"; }
23 
24  enum Type
25  {
26  Pants = 0,
27  Shoes = 1,
28  Shirt = 2,
29  Belt = 3,
30  Robe = 4,
31  RGlove = 5,
32  LGlove = 6,
33  Skirt = 7,
34  Ring = 8,
35  Amulet = 9
36  };
37 
38  struct CTDTstruct
39  {
40  int mType;
41  float mWeight;
42  short mValue;
43  short mEnchant;
44  };
46 
48 
49  std::string mId, mName, mModel, mIcon, mEnchant, mScript;
50 
51  void load(ESMReader &esm, bool &isDeleted);
52  void save(ESMWriter &esm, bool isDeleted = false) const;
53 
54  void blank();
56 };
57 }
58 #endif
Definition: loadclot.hpp:33
std::string mName
Definition: loadclot.hpp:49
Definition: loadclot.hpp:28
Definition: esmreader.hpp:21
Definition: loadclot.hpp:26
Definition: loadarmo.hpp:54
Definition: loadclot.hpp:27
std::string mModel
Definition: loadclot.hpp:49
PartReferenceList mParts
Definition: loadclot.hpp:47
std::string mScript
Definition: loadclot.hpp:49
Definition: loadclot.hpp:30
Type
Definition: loadclot.hpp:24
CTDTstruct mData
Definition: loadclot.hpp:45
Definition: loadclot.hpp:34
Definition: esmwriter.hpp:17
int mType
Definition: loadclot.hpp:40
float mWeight
Definition: loadclot.hpp:41
std::string mId
Definition: loadclot.hpp:49
Definition: loadclot.hpp:32
Definition: loadclot.hpp:38
short mEnchant
Definition: loadclot.hpp:43
void blank()
Set record to default state (does not touch the ID).
Definition: loadclot.cpp:88
Definition: loadclot.hpp:35
Definition: loadclot.hpp:31
static std::string getRecordType()
Return a string descriptor for this record type. Currently used for debugging / error logs only...
Definition: loadclot.hpp:22
void save(ESMWriter &esm, bool isDeleted=false) const
Definition: loadclot.cpp:66
Definition: loadclot.hpp:18
static unsigned int sRecordId
Definition: loadclot.hpp:20
Definition: loadclot.hpp:29
std::string mEnchant
Definition: loadclot.hpp:49
short mValue
Definition: loadclot.hpp:42
void load(ESMReader &esm, bool &isDeleted)
Definition: loadclot.cpp:11
std::string mIcon
Definition: loadclot.hpp:49