1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 14:23:53 +00:00
openmw/apps/opencs/model/tools/mergestate.hpp
2022-09-22 21:35:26 +03:00

28 lines
561 B
C++

#ifndef CSM_TOOLS_MERGESTATE_H
#define CSM_TOOLS_MERGESTATE_H
#include <cstdint>
#include <map>
#include <memory>
#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