|
|
@ -1,11 +1,12 @@
|
|
|
|
#ifndef OPENMW_ESM_SCPT_H
|
|
|
|
#ifndef OPENMW_ESM_SCPT_H
|
|
|
|
#define OPENMW_ESM_SCPT_H
|
|
|
|
#define OPENMW_ESM_SCPT_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <string>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
|
|
#include "components/esm/defs.hpp"
|
|
|
|
#include <components/esm/defs.hpp>
|
|
|
|
#include "components/esm/refid.hpp"
|
|
|
|
#include <components/esm/refid.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -25,22 +26,21 @@ namespace ESM
|
|
|
|
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
|
|
|
|
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
|
|
|
|
static std::string_view getRecordType() { return "Script"; }
|
|
|
|
static std::string_view getRecordType() { return "Script"; }
|
|
|
|
|
|
|
|
|
|
|
|
struct SCHDstruct
|
|
|
|
struct SCHD
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/// Data from script-precompling in the editor.
|
|
|
|
/// Data from script-precompling in the editor.
|
|
|
|
/// \warning Do not use them. OpenCS currently does not precompile scripts.
|
|
|
|
/// \warning Do not use them. OpenCS currently does not precompile scripts.
|
|
|
|
uint32_t mNumShorts, mNumLongs, mNumFloats, mScriptDataSize, mStringTableSize;
|
|
|
|
std::uint32_t mNumShorts;
|
|
|
|
};
|
|
|
|
std::uint32_t mNumLongs;
|
|
|
|
struct SCHD
|
|
|
|
std::uint32_t mNumFloats;
|
|
|
|
{
|
|
|
|
std::uint32_t mScriptDataSize;
|
|
|
|
std::string mName;
|
|
|
|
std::uint32_t mStringTableSize;
|
|
|
|
Script::SCHDstruct mData;
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
uint32_t mRecordFlags;
|
|
|
|
uint32_t mRecordFlags;
|
|
|
|
RefId mId;
|
|
|
|
RefId mId;
|
|
|
|
|
|
|
|
|
|
|
|
SCHDstruct mData;
|
|
|
|
SCHD mData;
|
|
|
|
|
|
|
|
|
|
|
|
/// Variable names generated by script-precompiling in the editor.
|
|
|
|
/// Variable names generated by script-precompiling in the editor.
|
|
|
|
/// \warning Do not use this field. OpenCS currently does not precompile scripts.
|
|
|
|
/// \warning Do not use this field. OpenCS currently does not precompile scripts.
|
|
|
|