OpenMW
components/esm/loadstat.hpp
Go to the documentation of this file.
00001 #ifndef OPENMW_ESM_STAT_H
00002 #define OPENMW_ESM_STAT_H
00003 
00004 #include <string>
00005 
00006 namespace ESM {
00007 
00008 class ESMReader;
00009 class ESMWriter;
00010 
00011 /*
00012  * Definition of static object.
00013  *
00014  * A stat record is basically just a reference to a nif file. Some
00015  * esps seem to contain copies of the STAT entries from the esms, and
00016  * the esms themselves contain several identical entries. Perhaps all
00017  * statics referenced in a file is also put in the file? Since we are
00018  * only reading files it doesn't much matter to us, but it would if we
00019  * were writing our own ESM/ESPs. You can check some files later when
00020  * you decode the CELL blocks, if you want to test this hypothesis.
00021  */
00022 
00023 struct Static
00024 {
00025     static unsigned int sRecordId;
00026 
00027   std::string mId, mModel;
00028 
00029   void load(ESMReader &esm);
00030   void save(ESMWriter &esm) const;
00031 
00032     void blank();
00034 };
00035 }
00036 #endif