2013-04-04 10:10:26 +02:00
|
|
|
#ifndef CSM_TOOLS_CLASSCHECK_H
|
|
|
|
#define CSM_TOOLS_CLASSCHECK_H
|
|
|
|
|
|
|
|
#include "../world/idcollection.hpp"
|
|
|
|
|
2013-09-14 14:56:23 +02:00
|
|
|
#include "../doc/stage.hpp"
|
2013-04-04 10:10:26 +02:00
|
|
|
|
2022-10-19 19:02:00 +02:00
|
|
|
namespace CSMDoc
|
|
|
|
{
|
|
|
|
class Messages;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
struct Class;
|
|
|
|
}
|
|
|
|
|
2013-04-04 10:10:26 +02:00
|
|
|
namespace CSMTools
|
|
|
|
{
|
|
|
|
/// \brief VerifyStage: make sure that class records are internally consistent
|
2013-09-14 14:56:23 +02:00
|
|
|
class ClassCheckStage : public CSMDoc::Stage
|
2013-04-04 10:10:26 +02:00
|
|
|
{
|
|
|
|
const CSMWorld::IdCollection<ESM::Class>& mClasses;
|
2018-06-20 00:20:03 +02:00
|
|
|
bool mIgnoreBaseRecords;
|
2013-04-04 10:10:26 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
ClassCheckStage(const CSMWorld::IdCollection<ESM::Class>& classes);
|
|
|
|
|
|
|
|
int setup() override;
|
|
|
|
///< \return number of steps
|
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void perform(int stage, CSMDoc::Messages& messages) override;
|
2013-04-04 10:10:26 +02:00
|
|
|
///< Messages resulting from this tage will be appended to \a messages.
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|