OpenMW
components/esm/loadalch.hpp
Go to the documentation of this file.
00001 #ifndef OPENMW_ESM_ALCH_H
00002 #define OPENMW_ESM_ALCH_H
00003 
00004 #include <string>
00005 
00006 #include "effectlist.hpp"
00007 
00008 namespace ESM
00009 {
00010 
00011 class ESMReader;
00012 class ESMWriter;
00013 
00014 /*
00015  * Alchemy item (potions)
00016  */
00017 
00018 struct Potion
00019 {
00020     static unsigned int sRecordId;
00021 
00022     struct ALDTstruct
00023     {
00024         float mWeight;
00025         int mValue;
00026         int mAutoCalc;
00027     };
00028     ALDTstruct mData;
00029 
00030     std::string mId, mName, mModel, mIcon, mScript;
00031     EffectList mEffects;
00032 
00033     void load(ESMReader &esm);
00034     void save(ESMWriter &esm) const;
00035 
00036     void blank();
00038 
00039     };
00040 }
00041 #endif