mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
d1fb854521
esm typo esm typo
28 lines
566 B
C++
28 lines
566 B
C++
#ifndef OPENMW_ESM_GLOBALSCRIPT_H
|
|
#define OPENMW_ESM_GLOBALSCRIPT_H
|
|
|
|
#include "locals.hpp"
|
|
#include "cellref.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
|
|
RefNum mTargetRef;
|
|
|
|
void load (ESMReader &esm);
|
|
void save (ESMWriter &esm) const;
|
|
};
|
|
}
|
|
|
|
#endif
|