mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
49 lines
938 B
C++
49 lines
938 B
C++
#ifndef CSM_TOOLS_PATHGRIDCHECK_H
|
|
#define CSM_TOOLS_PATHGRIDCHECK_H
|
|
|
|
#include <algorithm>
|
|
#include <vector>
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
namespace CSMDoc
|
|
{
|
|
class Messages;
|
|
}
|
|
|
|
namespace CSMWorld
|
|
{
|
|
struct Pathgrid;
|
|
template <typename T>
|
|
class SubCellCollection;
|
|
}
|
|
|
|
namespace CSMTools
|
|
{
|
|
struct Point
|
|
{
|
|
unsigned char mConnectionNum;
|
|
std::vector<size_t> mOtherIndex;
|
|
Point()
|
|
: mConnectionNum(0)
|
|
, mOtherIndex(0)
|
|
{
|
|
}
|
|
};
|
|
|
|
class PathgridCheckStage : public CSMDoc::Stage
|
|
{
|
|
const CSMWorld::SubCellCollection<CSMWorld::Pathgrid>& mPathgrids;
|
|
bool mIgnoreBaseRecords;
|
|
|
|
public:
|
|
explicit PathgridCheckStage(const CSMWorld::SubCellCollection<CSMWorld::Pathgrid>& pathgrids);
|
|
|
|
int setup() override;
|
|
|
|
void perform(int stage, CSMDoc::Messages& messages) override;
|
|
};
|
|
}
|
|
|
|
#endif // CSM_TOOLS_PATHGRIDCHECK_H
|