mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 06:26:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			450 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			450 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 = ESM::RefId::stringRefId(scpt.mSCHD.mName.toString());
 | 
						|
        out.mRunning = scpt.mRunning;
 | 
						|
        out.mTargetRef = ESM::RefNum{}; // TODO: convert target reference of global script
 | 
						|
        convertSCRI(scpt.mSCRI, out.mLocals);
 | 
						|
    }
 | 
						|
 | 
						|
}
 |