1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-23 22:23:54 +00:00
openmw/apps/opencs/model/tools/bodypartcheck.hpp
2022-09-22 21:35:26 +03:00

34 lines
1 KiB
C++

#ifndef CSM_TOOLS_BODYPARTCHECK_H
#define CSM_TOOLS_BODYPARTCHECK_H
#include <components/esm3/loadbody.hpp>
#include <components/esm3/loadrace.hpp>
#include "../world/idcollection.hpp"
#include "../world/resources.hpp"
#include "../doc/stage.hpp"
namespace CSMTools
{
/// \brief VerifyStage: make sure that body part records are internally consistent
class BodyPartCheckStage : public CSMDoc::Stage
{
const CSMWorld::IdCollection<ESM::BodyPart>& mBodyParts;
const CSMWorld::Resources& mMeshes;
const CSMWorld::IdCollection<ESM::Race>& mRaces;
bool mIgnoreBaseRecords;
public:
BodyPartCheckStage(const CSMWorld::IdCollection<ESM::BodyPart>& bodyParts, const CSMWorld::Resources& meshes,
const CSMWorld::IdCollection<ESM::Race>& races);
int setup() override;
///< \return number of steps
void perform(int stage, CSMDoc::Messages& messages) override;
///< Messages resulting from this tage will be appended to \a messages.
};
}
#endif