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