2013-04-07 21:25:35 +00:00
|
|
|
#ifndef CSM_TOOLS_BIRTHSIGNCHECK_H
|
|
|
|
#define CSM_TOOLS_BIRTHSIGNCHECK_H
|
|
|
|
|
|
|
|
#include <components/esm/loadbsgn.hpp>
|
|
|
|
|
|
|
|
#include "../world/idcollection.hpp"
|
|
|
|
|
2013-09-14 12:56:23 +00:00
|
|
|
#include "../doc/stage.hpp"
|
2013-04-07 21:25:35 +00:00
|
|
|
|
|
|
|
namespace CSMTools
|
|
|
|
{
|
|
|
|
/// \brief VerifyStage: make sure that birthsign records are internally consistent
|
2013-09-14 12:56:23 +00:00
|
|
|
class BirthsignCheckStage : public CSMDoc::Stage
|
2013-04-07 21:25:35 +00:00
|
|
|
{
|
|
|
|
const CSMWorld::IdCollection<ESM::BirthSign>& mBirthsigns;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
BirthsignCheckStage (const CSMWorld::IdCollection<ESM::BirthSign>& birthsigns);
|
|
|
|
|
|
|
|
virtual int setup();
|
|
|
|
///< \return number of steps
|
|
|
|
|
2014-05-08 10:42:29 +00:00
|
|
|
virtual void perform (int stage, Messages& messages);
|
2013-04-07 21:25:35 +00:00
|
|
|
///< Messages resulting from this tage will be appended to \a messages.
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|