OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
globalscript.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_GLOBALSCRIPT_H
2 #define OPENMW_ESM_GLOBALSCRIPT_H
3 
4 #include "locals.hpp"
5 
6 namespace ESM
7 {
8  class ESMReader;
9  class ESMWriter;
10 
12 
13  struct GlobalScript
14  {
15  std::string mId;
17  int mRunning;
18  std::string mTargetId; // for targeted scripts
19 
20  void load (ESMReader &esm);
21  void save (ESMWriter &esm) const;
22  };
23 }
24 
25 #endif
Definition: esmreader.hpp:21
Storage structure for global script state (only used in saved games)
Definition: globalscript.hpp:13
int mRunning
Definition: globalscript.hpp:17
void load(ESMReader &esm)
Definition: globalscript.cpp:6
void save(ESMWriter &esm) const
Definition: globalscript.cpp:18
Definition: esmwriter.hpp:17
Storage structure for local variables (only used in saved games)
Definition: locals.hpp:18
Locals mLocals
Definition: globalscript.hpp:16
std::string mId
Definition: globalscript.hpp:15
std::string mTargetId
Definition: globalscript.hpp:18