mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 07:56:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			521 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			521 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef CSM_TOOLS_MERGESTATE_H
 | 
						|
#define CSM_TOOLS_MERGESTATE_H
 | 
						|
 | 
						|
#include <stdint.h>
 | 
						|
 | 
						|
#include <memory>
 | 
						|
#include <map>
 | 
						|
 | 
						|
#include "../doc/document.hpp"
 | 
						|
 | 
						|
namespace CSMTools
 | 
						|
{
 | 
						|
    struct MergeState
 | 
						|
    {
 | 
						|
        std::auto_ptr<CSMDoc::Document> mTarget;
 | 
						|
        CSMDoc::Document& mSource;
 | 
						|
        bool mCompleted;
 | 
						|
        std::map<std::pair<uint16_t, int>, int> mTextureIndices; // (texture, content file) -> new texture
 | 
						|
 | 
						|
        MergeState (CSMDoc::Document& source) : mSource (source), mCompleted (false) {}
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |