2014-08-26 15:55:31 +00:00
|
|
|
#ifndef CSM_TOOLS_BODYPARTCHECK_H
|
|
|
|
#define CSM_TOOLS_BODYPARTCHECK_H
|
|
|
|
|
2022-01-22 14:58:41 +00:00
|
|
|
#include <components/esm3/loadbody.hpp>
|
|
|
|
#include <components/esm3/loadrace.hpp>
|
2014-08-26 15:55:31 +00:00
|
|
|
|
|
|
|
#include "../world/idcollection.hpp"
|
2022-09-22 18:26:05 +00:00
|
|
|
#include "../world/resources.hpp"
|
2014-08-26 15:55:31 +00:00
|
|
|
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
|
|
|
|
namespace CSMTools
|
|
|
|
{
|
|
|
|
/// \brief VerifyStage: make sure that body part records are internally consistent
|
|
|
|
class BodyPartCheckStage : public CSMDoc::Stage
|
|
|
|
{
|
2022-09-22 18:26:05 +00:00
|
|
|
const CSMWorld::IdCollection<ESM::BodyPart>& mBodyParts;
|
|
|
|
const CSMWorld::Resources& mMeshes;
|
|
|
|
const CSMWorld::IdCollection<ESM::Race>& mRaces;
|
|
|
|
bool mIgnoreBaseRecords;
|
2014-08-26 15:55:31 +00:00
|
|
|
|
|
|
|
public:
|
2022-09-22 18:26:05 +00:00
|
|
|
BodyPartCheckStage(const CSMWorld::IdCollection<ESM::BodyPart>& bodyParts, const CSMWorld::Resources& meshes,
|
|
|
|
const CSMWorld::IdCollection<ESM::Race>& races);
|
2014-08-26 15:55:31 +00:00
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
int setup() override;
|
2014-08-26 15:55:31 +00:00
|
|
|
///< \return number of steps
|
|
|
|
|
2022-09-22 18:26:05 +00:00
|
|
|
void perform(int stage, CSMDoc::Messages& messages) override;
|
2014-08-26 15:55:31 +00:00
|
|
|
///< Messages resulting from this tage will be appended to \a messages.
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2015-03-11 14:54:45 +00:00
|
|
|
#endif
|