mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:49:58 +00:00
36 lines
1 KiB
C++
36 lines
1 KiB
C++
#ifndef CSM_TOOLS_BIRTHSIGNCHECK_H
|
|
#define CSM_TOOLS_BIRTHSIGNCHECK_H
|
|
|
|
#include <components/esm/loadbsgn.hpp>
|
|
|
|
#include "../world/idcollection.hpp"
|
|
#include "../world/resources.hpp"
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
namespace CSMTools
|
|
{
|
|
/// \brief VerifyStage: make sure that birthsign records are internally consistent
|
|
class BirthsignCheckStage : public CSMDoc::Stage
|
|
{
|
|
const CSMWorld::IdCollection<ESM::BirthSign> &mBirthsigns;
|
|
const CSMWorld::Resources &mTextures;
|
|
bool mIgnoreBaseRecords;
|
|
|
|
private:
|
|
std::string checkTexture(const std::string &texture) const;
|
|
|
|
public:
|
|
|
|
BirthsignCheckStage (const CSMWorld::IdCollection<ESM::BirthSign> &birthsigns,
|
|
const CSMWorld::Resources &textures);
|
|
|
|
virtual int setup();
|
|
///< \return number of steps
|
|
|
|
virtual void perform (int stage, CSMDoc::Messages& messages);
|
|
///< Messages resulting from this tage will be appended to \a messages.
|
|
};
|
|
}
|
|
|
|
#endif
|