mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-12 03:36:32 +00:00
35 lines
1.0 KiB
C++
35 lines
1.0 KiB
C++
|
#ifndef CSM_TOOLS_BODYPARTCHECK_H
|
||
|
#define CSM_TOOLS_BODYPARTCHECK_H
|
||
|
|
||
|
#include <components/esm/loadbody.hpp>
|
||
|
#include <components/esm/loadrace.hpp>
|
||
|
|
||
|
#include "../world/resources.hpp"
|
||
|
#include "../world/idcollection.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;
|
||
|
|
||
|
public:
|
||
|
BodyPartCheckStage(
|
||
|
const CSMWorld::IdCollection<ESM::BodyPart> &bodyParts,
|
||
|
const CSMWorld::Resources &meshes,
|
||
|
const CSMWorld::IdCollection<ESM::Race> &races );
|
||
|
|
||
|
virtual int setup();
|
||
|
///< \return number of steps
|
||
|
|
||
|
virtual void perform( int stage, Messages &messages );
|
||
|
///< Messages resulting from this tage will be appended to \a messages.
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|