OpenMW
components/esm/loadclot.hpp
Go to the documentation of this file.
00001 #ifndef OPENMW_ESM_CLOT_H
00002 #define OPENMW_ESM_CLOT_H
00003 
00004 #include <string>
00005 
00006 #include "loadarmo.hpp"
00007 
00008 namespace ESM
00009 {
00010 
00011 class ESMReader;
00012 class ESMWriter;
00013 
00014 /*
00015  * Clothing
00016  */
00017 
00018 struct Clothing
00019 {
00020     static unsigned int sRecordId;
00021 
00022     enum Type
00023     {
00024         Pants = 0,
00025         Shoes = 1,
00026         Shirt = 2,
00027         Belt = 3,
00028         Robe = 4,
00029         RGlove = 5,
00030         LGlove = 6,
00031         Skirt = 7,
00032         Ring = 8,
00033         Amulet = 9
00034     };
00035 
00036     struct CTDTstruct
00037     {
00038         int mType;
00039         float mWeight;
00040         short mValue;
00041         short mEnchant;
00042     };
00043     CTDTstruct mData;
00044 
00045     PartReferenceList mParts;
00046 
00047     std::string mId, mName, mModel, mIcon, mEnchant, mScript;
00048 
00049     void load(ESMReader &esm);
00050     void save(ESMWriter &esm) const;
00051 
00052     void blank();
00054 };
00055 }
00056 #endif