1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 04:19:55 +00:00
openmw-tes3mp/apps/opencs/model/tools/birthsigncheck.hpp

41 lines
1 KiB
C++
Raw Normal View History

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"
#include "../doc/stage.hpp"
2013-04-07 21:25:35 +00:00
namespace CSMWorld
{
class Resources;
}
2013-04-07 21:25:35 +00:00
namespace CSMTools
{
/// \brief VerifyStage: make sure that birthsign records are internally consistent
class BirthsignCheckStage : public CSMDoc::Stage
2013-04-07 21:25:35 +00:00
{
const CSMWorld::IdCollection<ESM::BirthSign> &mBirthsigns;
const CSMWorld::Resources &mTextures;
bool mIgnoreBaseRecords;
2013-04-07 21:25:35 +00:00
private:
std::string checkTexture(const std::string &texture) const;
2013-04-07 21:25:35 +00:00
public:
BirthsignCheckStage (const CSMWorld::IdCollection<ESM::BirthSign> &birthsigns,
const CSMWorld::Resources &textures);
2013-04-07 21:25:35 +00:00
virtual int setup();
///< \return number of steps
virtual void perform (int stage, CSMDoc::Messages& messages);
2013-04-07 21:25:35 +00:00
///< Messages resulting from this tage will be appended to \a messages.
};
}
#endif