1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/apps/opencs/model/tools/bodypartcheck.hpp

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

49 lines
1.1 KiB
C++
Raw Normal View History

#ifndef CSM_TOOLS_BODYPARTCHECK_H
#define CSM_TOOLS_BODYPARTCHECK_H
#include <components/esm3/loadrace.hpp>
#include "../world/idcollection.hpp"
#include "../doc/stage.hpp"
2022-10-19 19:02:00 +02:00
namespace CSMDoc
{
class Messages;
}
namespace CSMWorld
{
class Resources;
}
namespace ESM
{
struct BodyPart;
struct Race;
}
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.
};
}
2015-03-11 10:54:45 -04:00
#endif