1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-04 02:41:19 +00:00
OpenMW/apps/essimporter/convertscpt.cpp
2022-09-22 21:35:26 +03:00

19 lines
447 B
C++

#include "convertscpt.hpp"
#include "convertscri.hpp"
#include <components/misc/strings/lower.hpp>
namespace ESSImport
{
void convertSCPT(const SCPT& scpt, ESM::GlobalScript& out)
{
out.mId = Misc::StringUtils::lowerCase(scpt.mSCHD.mName.toString());
out.mRunning = scpt.mRunning;
out.mTargetRef.unset(); // TODO: convert target reference of global script
convertSCRI(scpt.mSCRI, out.mLocals);
}
}