mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
move most of the files from esm to esm3, keep common code in esm; this is make space for a future with esm4
esm typo esm typo
This commit is contained in:
parent
c263bbf0f6
commit
d1fb854521
448 changed files with 686 additions and 683 deletions
27
components/esm3/globalscript.hpp
Normal file
27
components/esm3/globalscript.hpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue