2015-01-25 00:17:37 +01:00
|
|
|
#include "convertscpt.hpp"
|
|
|
|
|
|
|
|
#include "convertscri.hpp"
|
|
|
|
|
2022-08-03 00:00:54 +02:00
|
|
|
#include <components/misc/strings/lower.hpp>
|
|
|
|
|
2015-01-25 00:17:37 +01:00
|
|
|
namespace ESSImport
|
|
|
|
{
|
|
|
|
|
|
|
|
void convertSCPT(const SCPT& scpt, ESM::GlobalScript& out)
|
|
|
|
{
|
2022-10-06 19:39:46 +02:00
|
|
|
out.mId = ESM::RefId::stringRefId(scpt.mSCHD.mName.toString());
|
2015-01-25 01:53:59 +01:00
|
|
|
out.mRunning = scpt.mRunning;
|
2023-01-09 10:45:07 +01:00
|
|
|
out.mTargetRef = ESM::RefNum{}; // TODO: convert target reference of global script
|
2015-01-25 00:17:37 +01:00
|
|
|
convertSCRI(scpt.mSCRI, out.mLocals);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|