mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-06 00:40:04 +00:00
Remove unused SCHD type
This commit is contained in:
parent
82285dadc4
commit
4571a8b88a
@ -19,7 +19,7 @@ namespace ESSImport
|
||||
struct SCHD
|
||||
{
|
||||
ESM::NAME32 mName;
|
||||
ESM::Script::SCHDstruct mData;
|
||||
ESM::Script::SCHD mData;
|
||||
};
|
||||
|
||||
// A running global script
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
namespace ESM
|
||||
{
|
||||
template <Misc::SameAsWithoutCvref<Script::SCHDstruct> T>
|
||||
template <Misc::SameAsWithoutCvref<Script::SCHD> T>
|
||||
void decompose(T&& v, const auto& f)
|
||||
{
|
||||
f(v.mNumShorts, v.mNumLongs, v.mNumFloats, v.mScriptDataSize, v.mStringTableSize);
|
||||
|
@ -1,11 +1,12 @@
|
||||
#ifndef OPENMW_ESM_SCPT_H
|
||||
#define OPENMW_ESM_SCPT_H
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "components/esm/defs.hpp"
|
||||
#include "components/esm/refid.hpp"
|
||||
#include <components/esm/defs.hpp>
|
||||
#include <components/esm/refid.hpp>
|
||||
|
||||
namespace ESM
|
||||
{
|
||||
@ -25,22 +26,21 @@ namespace ESM
|
||||
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
|
||||
static std::string_view getRecordType() { return "Script"; }
|
||||
|
||||
struct SCHDstruct
|
||||
struct SCHD
|
||||
{
|
||||
/// Data from script-precompling in the editor.
|
||||
/// \warning Do not use them. OpenCS currently does not precompile scripts.
|
||||
uint32_t mNumShorts, mNumLongs, mNumFloats, mScriptDataSize, mStringTableSize;
|
||||
};
|
||||
struct SCHD
|
||||
{
|
||||
std::string mName;
|
||||
Script::SCHDstruct mData;
|
||||
std::uint32_t mNumShorts;
|
||||
std::uint32_t mNumLongs;
|
||||
std::uint32_t mNumFloats;
|
||||
std::uint32_t mScriptDataSize;
|
||||
std::uint32_t mStringTableSize;
|
||||
};
|
||||
|
||||
uint32_t mRecordFlags;
|
||||
RefId mId;
|
||||
|
||||
SCHDstruct mData;
|
||||
SCHD mData;
|
||||
|
||||
/// Variable names generated by script-precompiling in the editor.
|
||||
/// \warning Do not use this field. OpenCS currently does not precompile scripts.
|
||||
|
Loading…
x
Reference in New Issue
Block a user