1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 12:35:46 +00:00
OpenMW/apps/opencs/model/tools/referencecheck.hpp

52 lines
1.3 KiB
C++
Raw Normal View History

#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
{
struct BodyPart;
2022-08-19 19:19:42 +02:00
struct Faction;
}
2022-10-19 19:02:00 +02:00
namespace CSMDoc
{
class Messages;
}
namespace CSMWorld
{
class RefIdCollection;
class RefIdData;
struct Cell;
}
namespace CSMTools
{
class ReferenceCheckStage : public CSMDoc::Stage
{
2022-09-22 21:26:05 +03:00
public:
ReferenceCheckStage(const CSMWorld::RefCollection& references, const CSMWorld::RefIdCollection& referencables,
const CSMWorld::IdCollection<CSMWorld::Cell>& cells, const CSMWorld::IdCollection<ESM::Faction>& factions,
const CSMWorld::IdCollection<ESM::BodyPart>& bodyparts);
2022-09-22 21:26:05 +03:00
void perform(int stage, CSMDoc::Messages& messages) override;
int setup() override;
2022-09-22 21:26:05 +03:00
private:
const CSMWorld::RefCollection& mReferences;
const CSMWorld::RefIdCollection& mObjects;
const CSMWorld::RefIdData& mDataSet;
const CSMWorld::IdCollection<CSMWorld::Cell>& mCells;
const CSMWorld::IdCollection<ESM::Faction>& mFactions;
const CSMWorld::IdCollection<ESM::BodyPart>& mBodyParts;
2024-06-24 18:03:59 +00:00
std::unordered_map<ESM::RefNum, ESM::RefId> mUsedReferenceIDs;
2022-09-22 21:26:05 +03:00
bool mIgnoreBaseRecords;
};
}
2015-03-11 10:54:45 -04:00
#endif // CSM_TOOLS_REFERENCECHECK_H