2018-08-30 01:21:27 +03:00
|
|
|
#ifndef CSM_TOOLS_ENCHANTMENTCHECK_H
|
|
|
|
#define CSM_TOOLS_ENCHANTMENTCHECK_H
|
|
|
|
|
2022-01-22 15:58:41 +01:00
|
|
|
#include <components/esm3/loadench.hpp>
|
2018-08-30 01:21:27 +03:00
|
|
|
|
|
|
|
#include "../world/idcollection.hpp"
|
|
|
|
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
|
|
|
|
namespace CSMTools
|
|
|
|
{
|
|
|
|
/// \brief Make sure that enchantment records are correct
|
|
|
|
class EnchantmentCheckStage : public CSMDoc::Stage
|
|
|
|
{
|
|
|
|
const CSMWorld::IdCollection<ESM::Enchantment>& mEnchantments;
|
|
|
|
bool mIgnoreBaseRecords;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
EnchantmentCheckStage (const CSMWorld::IdCollection<ESM::Enchantment>& enchantments);
|
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
int setup() override;
|
2018-08-30 01:21:27 +03:00
|
|
|
///< \return number of steps
|
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void perform (int stage, CSMDoc::Messages& messages) override;
|
2018-08-30 01:21:27 +03:00
|
|
|
///< Messages resulting from this tage will be appended to \a messages.
|
2018-09-11 21:40:41 +03:00
|
|
|
|
2018-08-30 01:21:27 +03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|