1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 23:23:53 +00:00
openmw/apps/opencs/model/tools/pathgridcheck.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.1 KiB
C++
Raw Normal View History

#ifndef CSM_TOOLS_PATHGRIDCHECK_H
#define CSM_TOOLS_PATHGRIDCHECK_H
2022-10-19 17:02:00 +00:00
#include <algorithm>
#include <vector>
#include "../doc/stage.hpp"
2022-10-19 17:02:00 +00:00
namespace CSMDoc
{
class Messages;
}
namespace CSMWorld
{
struct Pathgrid;
template <typename T, typename AT>
class SubCellCollection;
2022-10-19 17:02:00 +00:00
template <typename ESXRecordT>
struct IdAccessor;
}
namespace CSMTools
{
struct Point
{
unsigned char mConnectionNum;
std::vector<int> mOtherIndex;
Point()
: mConnectionNum(0)
, mOtherIndex(0)
{
}
};
class PathgridCheckStage : public CSMDoc::Stage
{
const CSMWorld::SubCellCollection<CSMWorld::Pathgrid, CSMWorld::IdAccessor<CSMWorld::Pathgrid>>& mPathgrids;
bool mIgnoreBaseRecords;
public:
PathgridCheckStage(
const CSMWorld::SubCellCollection<CSMWorld::Pathgrid, CSMWorld::IdAccessor<CSMWorld::Pathgrid>>& pathgrids);
int setup() override;
void perform(int stage, CSMDoc::Messages& messages) override;
};
}
#endif // CSM_TOOLS_PATHGRIDCHECK_H