mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-29 12:20:41 +00:00
42 lines
643 B
C++
42 lines
643 B
C++
#ifndef OPENMW_ESSIMPORT_IMPORTSCPT_H
|
|
#define OPENMW_ESSIMPORT_IMPORTSCPT_H
|
|
|
|
#include "importscri.hpp"
|
|
|
|
#include <cstdint>
|
|
|
|
#include <components/esm/esmcommon.hpp>
|
|
#include <components/esm3/loadscpt.hpp>
|
|
|
|
namespace ESM
|
|
{
|
|
class ESMReader;
|
|
}
|
|
|
|
namespace ESSImport
|
|
{
|
|
|
|
struct SCHD
|
|
{
|
|
ESM::NAME32 mName;
|
|
ESM::Script::SCHDstruct mData;
|
|
};
|
|
|
|
// A running global script
|
|
struct SCPT
|
|
{
|
|
SCHD mSCHD;
|
|
|
|
// values of local variables
|
|
SCRI mSCRI;
|
|
|
|
bool mRunning;
|
|
int32_t mRefNum; // Targeted reference, -1: no reference
|
|
|
|
void load(ESM::ESMReader& esm);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|