1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 22:53:53 +00:00
openmw/apps/opencs/model/tools/gmstcheck.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
912 B
C++
Raw Normal View History

2016-01-18 02:55:03 +00:00
#ifndef CSM_TOOLS_GMSTCHECK_H
#define CSM_TOOLS_GMSTCHECK_H
2022-10-19 17:02:00 +00:00
#include <string>
#include <components/esm3/variant.hpp>
2016-01-18 02:55:03 +00:00
#include "../world/idcollection.hpp"
#include "../doc/stage.hpp"
2022-10-19 17:02:00 +00:00
namespace CSMDoc
{
class Messages;
}
namespace ESM
{
struct GameSetting;
}
2016-01-18 02:55:03 +00:00
namespace CSMTools
{
/// \brief VerifyStage: make sure that GMSTs are alright
class GmstCheckStage : public CSMDoc::Stage
2016-01-18 02:55:03 +00:00
{
public:
GmstCheckStage(const CSMWorld::IdCollection<ESM::GameSetting>& gameSettings);
2022-09-22 18:26:05 +00:00
int setup() override;
2016-01-18 02:55:03 +00:00
///< \return number of steps
void perform(int stage, CSMDoc::Messages& messages) override;
2016-01-18 02:55:03 +00:00
///< Messages resulting from this stage will be appended to \a messages
2022-09-22 18:26:05 +00:00
2016-01-18 02:55:03 +00:00
private:
const CSMWorld::IdCollection<ESM::GameSetting>& mGameSettings;
bool mIgnoreBaseRecords;
2022-09-22 18:26:05 +00:00
std::string varTypeToString(ESM::VarType);
2016-01-18 02:55:03 +00:00
};
}
#endif