2013-04-09 10:44:49 +00:00
|
|
|
#ifndef CSM_TOOLS_SPELLCHECK_H
|
|
|
|
#define CSM_TOOLS_SPELLCHECK_H
|
|
|
|
|
2022-01-22 14:58:41 +00:00
|
|
|
#include <components/esm3/loadspel.hpp>
|
2013-04-09 10:44:49 +00:00
|
|
|
|
|
|
|
#include "../world/idcollection.hpp"
|
|
|
|
|
2013-09-14 12:56:23 +00:00
|
|
|
#include "../doc/stage.hpp"
|
2013-04-09 10:44:49 +00:00
|
|
|
|
|
|
|
namespace CSMTools
|
|
|
|
{
|
|
|
|
/// \brief VerifyStage: make sure that spell records are internally consistent
|
2013-09-14 12:56:23 +00:00
|
|
|
class SpellCheckStage : public CSMDoc::Stage
|
2013-04-09 10:44:49 +00:00
|
|
|
{
|
|
|
|
const CSMWorld::IdCollection<ESM::Spell>& mSpells;
|
2018-06-19 22:20:03 +00:00
|
|
|
bool mIgnoreBaseRecords;
|
2013-04-09 10:44:49 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
SpellCheckStage (const CSMWorld::IdCollection<ESM::Spell>& spells);
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
int setup() override;
|
2013-04-09 10:44:49 +00:00
|
|
|
///< \return number of steps
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void perform (int stage, CSMDoc::Messages& messages) override;
|
2013-04-09 10:44:49 +00:00
|
|
|
///< Messages resulting from this tage will be appended to \a messages.
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|