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
|
2016-01-18 17:34:33 +00:00
|
|
|
class GmstCheckStage : public CSMDoc::Stage
|
2016-01-18 02:55:03 +00:00
|
|
|
{
|
|
|
|
public:
|
2016-01-18 17:34:33 +00:00
|
|
|
GmstCheckStage(const CSMWorld::IdCollection<ESM::GameSetting>& gameSettings);
|
2022-09-22 18:26:05 +00:00
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
int setup() override;
|
2016-01-18 02:55:03 +00:00
|
|
|
///< \return number of steps
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
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;
|
2018-06-19 22:20:03 +00:00
|
|
|
bool mIgnoreBaseRecords;
|
2022-09-22 18:26:05 +00:00
|
|
|
|
2016-01-18 17:34:33 +00:00
|
|
|
std::string varTypeToString(ESM::VarType);
|
2016-01-18 02:55:03 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|