2015-02-13 04:11:36 +01:00
|
|
|
#ifndef CSM_TOOLS_REFERENCECHECK_H
|
|
|
|
#define CSM_TOOLS_REFERENCECHECK_H
|
|
|
|
|
2022-08-19 19:19:42 +02:00
|
|
|
#include "../world/idcollection.hpp"
|
|
|
|
#include "../world/refcollection.hpp"
|
|
|
|
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
2024-01-26 19:09:52 +03:00
|
|
|
struct BodyPart;
|
2022-08-19 19:19:42 +02:00
|
|
|
struct Faction;
|
|
|
|
}
|
2015-02-13 04:11:36 +01:00
|
|
|
|
2022-10-19 19:02:00 +02:00
|
|
|
namespace CSMDoc
|
|
|
|
{
|
|
|
|
class Messages;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
class RefIdCollection;
|
|
|
|
class RefIdData;
|
|
|
|
struct Cell;
|
|
|
|
}
|
|
|
|
|
2015-02-13 04:11:36 +01:00
|
|
|
namespace CSMTools
|
|
|
|
{
|
|
|
|
class ReferenceCheckStage : public CSMDoc::Stage
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ReferenceCheckStage(const CSMWorld::RefCollection& references, const CSMWorld::RefIdCollection& referencables,
|
2024-01-26 19:09:52 +03:00
|
|
|
const CSMWorld::IdCollection<CSMWorld::Cell>& cells, const CSMWorld::IdCollection<ESM::Faction>& factions,
|
|
|
|
const CSMWorld::IdCollection<ESM::BodyPart>& bodyparts);
|
2015-02-13 04:11:36 +01:00
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void perform(int stage, CSMDoc::Messages& messages) override;
|
|
|
|
int setup() override;
|
2015-02-13 04:11:36 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
const CSMWorld::RefCollection& mReferences;
|
2018-08-25 02:03:55 +03:00
|
|
|
const CSMWorld::RefIdCollection& mObjects;
|
2015-02-13 12:13:40 +01:00
|
|
|
const CSMWorld::RefIdData& mDataSet;
|
2015-02-13 04:11:36 +01:00
|
|
|
const CSMWorld::IdCollection<CSMWorld::Cell>& mCells;
|
|
|
|
const CSMWorld::IdCollection<ESM::Faction>& mFactions;
|
2024-01-26 19:09:52 +03:00
|
|
|
const CSMWorld::IdCollection<ESM::BodyPart>& mBodyParts;
|
2018-06-20 00:20:03 +02:00
|
|
|
bool mIgnoreBaseRecords;
|
2015-02-13 04:11:36 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2015-03-11 10:54:45 -04:00
|
|
|
#endif // CSM_TOOLS_REFERENCECHECK_H
|