2015-08-16 13:24:48 +00:00
|
|
|
#ifndef CSM_TOOLS_MERGESTATE_H
|
|
|
|
#define CSM_TOOLS_MERGESTATE_H
|
|
|
|
|
2022-01-22 21:44:02 +00:00
|
|
|
#include <cstdint>
|
2015-08-30 12:27:22 +00:00
|
|
|
|
2015-08-30 09:08:56 +00:00
|
|
|
#include <map>
|
2015-08-16 13:24:48 +00:00
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "../doc/document.hpp"
|
|
|
|
|
|
|
|
namespace CSMTools
|
|
|
|
{
|
|
|
|
struct MergeState
|
|
|
|
{
|
2017-04-28 15:30:26 +00:00
|
|
|
std::unique_ptr<CSMDoc::Document> mTarget;
|
2015-08-16 13:24:48 +00:00
|
|
|
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
|