mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +00:00
35 lines
921 B
C++
35 lines
921 B
C++
#ifndef CSM_TOOLS_RACECHECK_H
|
|
#define CSM_TOOLS_RACECHECK_H
|
|
|
|
#include <components/esm/loadrace.hpp>
|
|
|
|
#include "../world/idcollection.hpp"
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
namespace CSMTools
|
|
{
|
|
/// \brief VerifyStage: make sure that race records are internally consistent
|
|
class RaceCheckStage : public CSMDoc::Stage
|
|
{
|
|
const CSMWorld::IdCollection<ESM::Race>& mRaces;
|
|
bool mPlayable;
|
|
|
|
void performPerRecord (int stage, std::vector<std::string>& messages);
|
|
|
|
void performFinal (std::vector<std::string>& messages);
|
|
|
|
public:
|
|
|
|
RaceCheckStage (const CSMWorld::IdCollection<ESM::Race>& races);
|
|
|
|
virtual int setup();
|
|
///< \return number of steps
|
|
|
|
virtual void perform (int stage, std::vector<std::string>& messages);
|
|
///< Messages resulting from this tage will be appended to \a messages.
|
|
};
|
|
}
|
|
|
|
#endif
|