1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-30 17:34:31 +00:00
openmw/apps/essimporter/importscpt.hpp
2025-07-27 17:04:14 +02:00

46 lines
808 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>
#include <components/esm3/refnum.hpp>
namespace ESM
{
class ESMReader;
}
namespace ESSImport
{
struct SCHD
{
ESM::NAME32 mName;
std::uint32_t mNumShorts;
std::uint32_t mNumLongs;
std::uint32_t mNumFloats;
std::uint32_t mScriptDataSize;
std::uint32_t mStringTableSize;
};
// A running global script
struct SCPT
{
SCHD mSCHD;
// values of local variables
SCRI mSCRI;
bool mRunning;
ESM::RefNum mRefNum; // Targeted reference
void load(ESM::ESMReader& esm);
};
}
#endif