You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
523 B
C++
25 lines
523 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::unique_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
|