2015-08-16 13:24:48 +00:00
|
|
|
#ifndef CSM_TOOLS_MERGESTATE_H
|
|
|
|
#define CSM_TOOLS_MERGESTATE_H
|
|
|
|
|
2015-08-30 12:27:22 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2015-08-16 13:24:48 +00:00
|
|
|
#include <memory>
|
2015-08-30 09:08:56 +00:00
|
|
|
#include <map>
|
2015-08-16 13:24:48 +00:00
|
|
|
|
|
|
|
#include "../doc/document.hpp"
|
|
|
|
|
|
|
|
namespace CSMTools
|
|
|
|
{
|
|
|
|
struct MergeState
|
|
|
|
{
|
|
|
|
std::auto_ptr<CSMDoc::Document> mTarget;
|
|
|
|
CSMDoc::Document& mSource;
|
|
|
|
bool mCompleted;
|
2015-08-30 12:27:22 +00:00
|
|
|
std::map<std::pair<uint16_t, int>, int> mTextureIndices; // (texture, content file) -> new texture
|
2015-08-16 13:24:48 +00:00
|
|
|
|
|
|
|
MergeState (CSMDoc::Document& source) : mSource (source), mCompleted (false) {}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|