forked from OpenMW/openmw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloadclot.hpp
58 lines (46 loc) · 1.02 KB
/
loadclot.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef OPENMW_ESM_CLOT_H
#define OPENMW_ESM_CLOT_H
#include <string>
#include "loadarmo.hpp"
namespace ESM
{
class ESMReader;
class ESMWriter;
/*
* Clothing
*/
struct Clothing
{
static unsigned int sRecordId;
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
static std::string getRecordType() { return "Clothing"; }
enum Type
{
Pants = 0,
Shoes = 1,
Shirt = 2,
Belt = 3,
Robe = 4,
RGlove = 5,
LGlove = 6,
Skirt = 7,
Ring = 8,
Amulet = 9
};
struct CTDTstruct
{
int mType;
float mWeight;
short mValue;
short mEnchant;
};
CTDTstruct mData;
PartReferenceList mParts;
std::string mId, mName, mModel, mIcon, mEnchant, mScript;
void load(ESMReader &esm, bool &isDeleted);
void save(ESMWriter &esm, bool isDeleted = false) const;
void blank();
///< Set record to default state (does not touch the ID).
};
}
#endif