2015-08-16 15:24:48 +02:00
|
|
|
#ifndef CSM_TOOLS_MERGESTATE_H
|
|
|
|
#define CSM_TOOLS_MERGESTATE_H
|
|
|
|
|
2022-01-22 22:44:02 +01:00
|
|
|
#include <cstdint>
|
2015-08-30 14:27:22 +02:00
|
|
|
|
2015-08-30 11:08:56 +02:00
|
|
|
#include <map>
|
2015-08-16 15:24:48 +02:00
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "../doc/document.hpp"
|
|
|
|
|
|
|
|
namespace CSMTools
|
|
|
|
{
|
|
|
|
struct MergeState
|
|
|
|
{
|
2017-04-28 17:30:26 +02:00
|
|
|
std::unique_ptr<CSMDoc::Document> mTarget;
|
2015-08-16 15:24:48 +02:00
|
|
|
CSMDoc::Document& mSource;
|
|
|
|
bool mCompleted;
|
2015-08-30 14:27:22 +02:00
|
|
|
std::map<std::pair<uint16_t, int>, int> mTextureIndices; // (texture, content file) -> new texture
|
2015-08-16 15:24:48 +02:00
|
|
|
|
|
|
|
MergeState(CSMDoc::Document& source)
|
|
|
|
: mSource(source)
|
|
|
|
, mCompleted(false)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|