mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-28 00:15:06 +00:00
5c3ae3d94c
* Check the header presence before using it. * Write the header based on the actual content.
46 lines
784 B
C++
46 lines
784 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;
|
|
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;
|
|
int32_t mRefNum; // Targeted reference, -1: no reference
|
|
|
|
void load(ESM::ESMReader& esm);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|