mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 20:59:55 +00:00
47 lines
1 KiB
C++
47 lines
1 KiB
C++
#ifndef CSM_TOOLS_JOURNALCHECK_H
|
|
#define CSM_TOOLS_JOURNALCHECK_H
|
|
|
|
#include "../world/idcollection.hpp"
|
|
#include "../world/infocollection.hpp"
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
namespace CSMDoc
|
|
{
|
|
class Messages;
|
|
}
|
|
|
|
namespace CSMWorld
|
|
{
|
|
class InfoCollection;
|
|
}
|
|
|
|
namespace ESM
|
|
{
|
|
struct Dialogue;
|
|
}
|
|
|
|
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);
|
|
|
|
int setup() override;
|
|
///< \return number of steps
|
|
|
|
void perform(int stage, CSMDoc::Messages& messages) override;
|
|
///< Messages resulting from this stage will be appended to \a messages
|
|
|
|
private:
|
|
const CSMWorld::IdCollection<ESM::Dialogue>& mJournals;
|
|
const CSMWorld::InfoCollection& mJournalInfos;
|
|
bool mIgnoreBaseRecords;
|
|
CSMWorld::InfosRecordPtrByTopic mInfosByTopic;
|
|
};
|
|
}
|
|
|
|
#endif
|