1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-05 06:40:09 +00:00
OpenMW/apps/opencs/model/tools/journalcheck.hpp

34 lines
913 B
C++
Raw Normal View History

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