2013-12-15 15:16:50 +00:00
|
|
|
#ifndef OPENMW_ESM_GLOBALSCRIPT_H
|
|
|
|
#define OPENMW_ESM_GLOBALSCRIPT_H
|
|
|
|
|
|
|
|
#include "locals.hpp"
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
|
|
|
/// \brief Storage structure for global script state (only used in saved games)
|
|
|
|
|
|
|
|
struct GlobalScript
|
|
|
|
{
|
2015-01-24 23:17:37 +00:00
|
|
|
std::string mId; /// \note must be lowercase
|
2013-12-15 15:16:50 +00:00
|
|
|
Locals mLocals;
|
|
|
|
int mRunning;
|
2014-07-15 11:05:38 +00:00
|
|
|
std::string mTargetId; // for targeted scripts
|
2013-12-15 15:16:50 +00:00
|
|
|
|
|
|
|
void load (ESMReader &esm);
|
|
|
|
void save (ESMWriter &esm) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|