2012-09-23 18:11:08 +00:00
|
|
|
#ifndef OPENMW_ESM_BODY_H
|
|
|
|
#define OPENMW_ESM_BODY_H
|
2010-02-18 12:15:43 +00:00
|
|
|
|
2012-09-30 20:51:54 +00:00
|
|
|
#include <string>
|
2010-02-18 12:15:43 +00:00
|
|
|
|
2011-04-06 16:11:08 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
2010-02-19 13:23:22 +00:00
|
|
|
|
2012-09-30 20:51:54 +00:00
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
2012-09-30 19:34:53 +00:00
|
|
|
struct BodyPart
|
2010-02-18 12:15:43 +00:00
|
|
|
{
|
2013-09-24 11:17:28 +00:00
|
|
|
static unsigned int sRecordId;
|
|
|
|
|
2011-04-06 16:11:08 +00:00
|
|
|
enum MeshPart
|
2010-02-18 12:15:43 +00:00
|
|
|
{
|
2011-04-06 16:11:08 +00:00
|
|
|
MP_Head = 0,
|
|
|
|
MP_Hair = 1,
|
|
|
|
MP_Neck = 2,
|
|
|
|
MP_Chest = 3,
|
|
|
|
MP_Groin = 4,
|
|
|
|
MP_Hand = 5,
|
|
|
|
MP_Wrist = 6,
|
|
|
|
MP_Forearm = 7,
|
|
|
|
MP_Upperarm = 8,
|
|
|
|
MP_Foot = 9,
|
|
|
|
MP_Ankle = 10,
|
|
|
|
MP_Knee = 11,
|
|
|
|
MP_Upperleg = 12,
|
|
|
|
MP_Clavicle = 13,
|
2013-04-17 22:19:34 +00:00
|
|
|
MP_Tail = 14,
|
|
|
|
|
|
|
|
MP_Count = 15
|
2010-02-18 12:15:43 +00:00
|
|
|
};
|
|
|
|
|
2011-04-06 16:11:08 +00:00
|
|
|
enum Flags
|
2010-02-18 12:15:43 +00:00
|
|
|
{
|
2011-04-08 18:26:27 +00:00
|
|
|
BPF_Female = 1,
|
2013-03-30 19:04:05 +00:00
|
|
|
BPF_NotPlayable = 2
|
2010-02-18 12:15:43 +00:00
|
|
|
};
|
|
|
|
|
2011-04-06 16:11:08 +00:00
|
|
|
enum MeshType
|
2010-02-18 12:15:43 +00:00
|
|
|
{
|
2011-04-08 18:26:27 +00:00
|
|
|
MT_Skin = 0,
|
|
|
|
MT_Clothing = 1,
|
|
|
|
MT_Armor = 2
|
2010-02-18 12:15:43 +00:00
|
|
|
};
|
|
|
|
|
2011-04-06 16:11:08 +00:00
|
|
|
struct BYDTstruct
|
|
|
|
{
|
2012-09-17 07:37:50 +00:00
|
|
|
char mPart;
|
|
|
|
char mVampire;
|
|
|
|
char mFlags;
|
|
|
|
char mType;
|
2011-04-06 16:11:08 +00:00
|
|
|
};
|
|
|
|
|
2012-09-17 07:37:50 +00:00
|
|
|
BYDTstruct mData;
|
2013-04-17 22:19:34 +00:00
|
|
|
std::string mId, mModel, mRace;
|
2011-04-06 16:11:08 +00:00
|
|
|
|
|
|
|
void load(ESMReader &esm);
|
2013-09-16 10:32:35 +00:00
|
|
|
void save(ESMWriter &esm) const;
|
2010-02-18 12:15:43 +00:00
|
|
|
};
|
2010-02-19 13:23:22 +00:00
|
|
|
}
|
2010-02-18 12:15:43 +00:00
|
|
|
#endif
|