OpenMW
components/esm/loadmisc.hpp
Go to the documentation of this file.
00001 #ifndef OPENMW_ESM_MISC_H
00002 #define OPENMW_ESM_MISC_H
00003 
00004 #include <string>
00005 
00006 namespace ESM
00007 {
00008 
00009 class ESMReader;
00010 class ESMWriter;
00011 
00012 /*
00013  * Misc inventory items, basically things that have no use but can be
00014  * carried, bought and sold. It also includes keys.
00015  */
00016 
00017 struct Miscellaneous
00018 {
00019     static unsigned int sRecordId;
00020 
00021     struct MCDTstruct
00022     {
00023         float mWeight;
00024         int mValue;
00025         int mIsKey; // There are many keys in Morrowind.esm that has this
00026                    // set to 0. TODO: Check what this field corresponds to
00027                    // in the editor.
00028     };
00029     MCDTstruct mData;
00030 
00031     std::string mId, mName, mModel, mIcon, mScript;
00032 
00033     void load(ESMReader &esm);
00034     void save(ESMWriter &esm) const;
00035 
00036     void blank();
00038 };
00039 }
00040 #endif