OpenMW
components/esm/loadsscr.hpp
Go to the documentation of this file.
00001 #ifndef OPENMW_ESM_SSCR_H
00002 #define OPENMW_ESM_SSCR_H
00003 
00004 #include <string>
00005 
00006 namespace ESM
00007 {
00008 
00009 class ESMReader;
00010 class ESMWriter;
00011 
00012 /*
00013  Startup script. I think this is simply a 'main' script that is run
00014  from the begining. The SSCR records contain a DATA identifier which
00015  is totally useless (TODO: don't remember what it contains exactly,
00016  document it below later.), and a NAME which is simply a script
00017  reference.
00018  */
00019 
00020 struct StartScript
00021 {
00022     static unsigned int sRecordId;
00023 
00024     std::string mData;
00025     std::string mId, mScript;
00026 
00027     // Load a record and add it to the list
00028     void load(ESMReader &esm);
00029     void save(ESMWriter &esm) const;
00030 };
00031 
00032 }
00033 #endif