OpenMW
components/esm/loadglob.hpp
Go to the documentation of this file.
00001 #ifndef OPENMW_ESM_GLOB_H
00002 #define OPENMW_ESM_GLOB_H
00003 
00004 #include <string>
00005 
00006 #include "variant.hpp"
00007 
00008 namespace ESM
00009 {
00010 
00011 class ESMReader;
00012 class ESMWriter;
00013 
00014 /*
00015  * Global script variables
00016  */
00017 
00018 struct Global
00019 {
00020     static unsigned int sRecordId;
00021 
00022     std::string mId;
00023     Variant mValue;
00024 
00025     void load(ESMReader &esm);
00026     void save(ESMWriter &esm) const;
00027 
00028     void blank();
00030 };
00031 
00032 bool operator== (const Global& left, const Global& right);
00033 
00034 }
00035 #endif