OpenMW
components/esm/loadappa.hpp
Go to the documentation of this file.
00001 #ifndef OPENMW_ESM_APPA_H
00002 #define OPENMW_ESM_APPA_H
00003 
00004 #include <string>
00005 
00006 namespace ESM
00007 {
00008 
00009 class ESMReader;
00010 class ESMWriter;
00011 
00012 /*
00013  * Alchemist apparatus
00014  */
00015 
00016 struct Apparatus
00017 {
00018     static unsigned int sRecordId;
00019 
00020     enum AppaType
00021     {
00022         MortarPestle = 0,
00023         Albemic = 1,
00024         Calcinator = 2,
00025         Retort = 3
00026     };
00027 
00028     struct AADTstruct
00029     {
00030         int mType;
00031         float mQuality;
00032         float mWeight;
00033         int mValue;
00034     };
00035 
00036     AADTstruct mData;
00037     std::string mId, mModel, mIcon, mScript, mName;
00038 
00039     void load(ESMReader &esm);
00040     void save(ESMWriter &esm) const;
00041 
00042     void blank();
00044 };
00045 }
00046 #endif