2016-02-22 22:01:15 +00:00
|
|
|
#ifndef CSM_TOOLS_JOURNALCHECK_H
|
|
|
|
#define CSM_TOOLS_JOURNALCHECK_H
|
|
|
|
|
|
|
|
#include "../world/idcollection.hpp"
|
|
|
|
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
|
2022-10-19 17:02:00 +00:00
|
|
|
namespace CSMDoc
|
|
|
|
{
|
|
|
|
class Messages;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
class InfoCollection;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
struct Dialogue;
|
|
|
|
}
|
|
|
|
|
2016-02-22 22:01:15 +00:00
|
|
|
namespace CSMTools
|
|
|
|
{
|
|
|
|
/// \brief VerifyStage: make sure that journal infos are good
|
|
|
|
class JournalCheckStage : public CSMDoc::Stage
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
JournalCheckStage(
|
|
|
|
const CSMWorld::IdCollection<ESM::Dialogue>& journals, const CSMWorld::InfoCollection& journalInfos);
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
int setup() override;
|
2016-02-22 22:01:15 +00:00
|
|
|
///< \return number of steps
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void perform(int stage, CSMDoc::Messages& messages) override;
|
2016-02-22 22:01:15 +00:00
|
|
|
///< Messages resulting from this stage will be appended to \a messages
|
|
|
|
|
|
|
|
private:
|
|
|
|
const CSMWorld::IdCollection<ESM::Dialogue>& mJournals;
|
|
|
|
const CSMWorld::InfoCollection& mJournalInfos;
|
2018-06-19 22:20:03 +00:00
|
|
|
bool mIgnoreBaseRecords;
|
2016-02-22 22:01:15 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|