OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
loadbody.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_BODY_H
2 #define OPENMW_ESM_BODY_H
3 
4 #include <string>
5 
6 namespace ESM
7 {
8 
9 class ESMReader;
10 class ESMWriter;
11 
12 struct BodyPart
13 {
14  static unsigned int sRecordId;
16  static std::string getRecordType() { return "BodyPart"; }
17 
18  enum MeshPart
19  {
20  MP_Head = 0,
21  MP_Hair = 1,
22  MP_Neck = 2,
23  MP_Chest = 3,
24  MP_Groin = 4,
25  MP_Hand = 5,
26  MP_Wrist = 6,
29  MP_Foot = 9,
30  MP_Ankle = 10,
31  MP_Knee = 11,
34  MP_Tail = 14,
35 
36  MP_Count = 15
37  };
38 
39  enum Flags
40  {
43  };
44 
45  enum MeshType
46  {
47  MT_Skin = 0,
50  };
51 
52  struct BYDTstruct
53  {
54  unsigned char mPart; // mesh part
55  unsigned char mVampire; // boolean
56  unsigned char mFlags;
57  unsigned char mType; // mesh type
58  };
59 
61  std::string mId, mModel, mRace;
62 
63  void load(ESMReader &esm, bool &isDeleted);
64  void save(ESMWriter &esm, bool isDeleted = false) const;
65 
66  void blank();
68 };
69 }
70 #endif
MeshPart
Definition: loadbody.hpp:18
void blank()
Set record to default state (does not touch the ID).
Definition: loadbody.cpp:67
Definition: loadbody.hpp:22
Definition: loadbody.hpp:26
Definition: loadbody.hpp:27
Definition: loadbody.hpp:30
Definition: loadbody.hpp:52
Definition: loadbody.hpp:36
void save(ESMWriter &esm, bool isDeleted=false) const
Definition: loadbody.cpp:52
std::string mModel
Definition: loadbody.hpp:61
Definition: loadbody.hpp:31
Definition: esmreader.hpp:21
Definition: loadbody.hpp:42
unsigned char mPart
Definition: loadbody.hpp:54
Definition: loadbody.hpp:23
unsigned char mType
Definition: loadbody.hpp:57
Definition: loadbody.hpp:47
std::string mRace
Definition: loadbody.hpp:61
BYDTstruct mData
Definition: loadbody.hpp:60
Definition: loadbody.hpp:24
Definition: esmwriter.hpp:17
static unsigned int sRecordId
Definition: loadbody.hpp:14
unsigned char mVampire
Definition: loadbody.hpp:55
Definition: loadbody.hpp:49
Definition: loadbody.hpp:28
static std::string getRecordType()
Return a string descriptor for this record type. Currently used for debugging / error logs only...
Definition: loadbody.hpp:16
Definition: loadbody.hpp:32
Definition: loadbody.hpp:48
Definition: loadbody.hpp:29
Definition: loadbody.hpp:21
std::string mId
Definition: loadbody.hpp:61
void load(ESMReader &esm, bool &isDeleted)
Definition: loadbody.cpp:11
Definition: loadbody.hpp:41
Flags
Definition: loadbody.hpp:39
Definition: loadbody.hpp:34
Definition: loadbody.hpp:33
unsigned char mFlags
Definition: loadbody.hpp:56
Definition: loadbody.hpp:12
Definition: loadbody.hpp:20
MeshType
Definition: loadbody.hpp:45
Definition: loadbody.hpp:25