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