OpenMW
components/esm/loadingr.hpp
Go to the documentation of this file.
00001 #ifndef OPENMW_ESM_INGR_H
00002 #define OPENMW_ESM_INGR_H
00003 
00004 #include <string>
00005 
00006 namespace ESM
00007 {
00008 
00009 class ESMReader;
00010 class ESMWriter;
00011 
00012 /*
00013  * Alchemy ingredient
00014  */
00015 
00016 struct Ingredient
00017 {
00018     static unsigned int sRecordId;
00019 
00020     struct IRDTstruct
00021     {
00022         float mWeight;
00023         int mValue;
00024         int mEffectID[4]; // Effect, 0 or -1 means none
00025         int mSkills[4]; // SkillEnum related to effect
00026         int mAttributes[4]; // Attribute related to effect
00027     };
00028 
00029     IRDTstruct mData;
00030     std::string mId, mName, mModel, mIcon, mScript;
00031 
00032     void load(ESMReader &esm);
00033     void save(ESMWriter &esm) const;
00034 
00035     void blank();
00037 };
00038 }
00039 #endif