2012-09-23 22:11:08 +04:00
|
|
|
#ifndef OPENMW_ESM_CLOT_H
|
|
|
|
#define OPENMW_ESM_CLOT_H
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
|
2012-09-17 11:37:50 +04:00
|
|
|
#include <string>
|
|
|
|
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
#include "loadarmo.hpp"
|
|
|
|
|
2011-04-06 20:11:08 +04:00
|
|
|
namespace ESM
|
|
|
|
{
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
|
2012-10-01 00:51:54 +04:00
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
/*
|
|
|
|
* Clothing
|
|
|
|
*/
|
|
|
|
|
2012-09-30 23:34:53 +04:00
|
|
|
struct Clothing
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
{
|
2013-09-24 13:17:28 +02:00
|
|
|
static unsigned int sRecordId;
|
2015-06-14 02:31:00 +02:00
|
|
|
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
|
|
|
|
static std::string getRecordType() { return "Clothing"; }
|
2013-09-24 13:17:28 +02:00
|
|
|
|
2011-04-06 20:11:08 +04:00
|
|
|
enum Type
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
{
|
2011-04-06 20:11:08 +04:00
|
|
|
Pants = 0,
|
|
|
|
Shoes = 1,
|
|
|
|
Shirt = 2,
|
|
|
|
Belt = 3,
|
|
|
|
Robe = 4,
|
|
|
|
RGlove = 5,
|
|
|
|
LGlove = 6,
|
|
|
|
Skirt = 7,
|
|
|
|
Ring = 8,
|
|
|
|
Amulet = 9
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
};
|
|
|
|
|
2011-04-06 20:11:08 +04:00
|
|
|
struct CTDTstruct
|
|
|
|
{
|
2012-09-17 11:37:50 +04:00
|
|
|
int mType;
|
|
|
|
float mWeight;
|
|
|
|
short mValue;
|
|
|
|
short mEnchant;
|
2011-04-06 20:11:08 +04:00
|
|
|
};
|
2012-09-17 11:37:50 +04:00
|
|
|
CTDTstruct mData;
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
|
2012-09-17 11:37:50 +04:00
|
|
|
PartReferenceList mParts;
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
|
2012-10-07 21:24:47 +04:00
|
|
|
std::string mId, mName, mModel, mIcon, mEnchant, mScript;
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
|
2015-07-07 15:37:42 +03:00
|
|
|
bool mIsDeleted;
|
|
|
|
|
2011-04-06 20:11:08 +04:00
|
|
|
void load(ESMReader &esm);
|
2013-09-16 12:32:35 +02:00
|
|
|
void save(ESMWriter &esm) const;
|
2013-05-06 14:10:43 +02:00
|
|
|
|
|
|
|
void blank();
|
|
|
|
///< Set record to default state (does not touch the ID).
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|