You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/components/esm/globalscript.hpp

26 lines
516 B
C++

#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
{
std::string mId; /// \note must be lowercase
Locals mLocals;
int mRunning;
std::string mTargetId; // for targeted scripts
void load (ESMReader &esm);
void save (ESMWriter &esm) const;
};
}
#endif