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