2013-04-06 15:35:36 +00:00
|
|
|
#ifndef CSM_TOOLS_RACECHECK_H
|
|
|
|
#define CSM_TOOLS_RACECHECK_H
|
|
|
|
|
|
|
|
#include <components/esm/loadrace.hpp>
|
|
|
|
|
|
|
|
#include "../world/idcollection.hpp"
|
|
|
|
|
|
|
|
#include "stage.hpp"
|
|
|
|
|
|
|
|
namespace CSMTools
|
|
|
|
{
|
|
|
|
/// \brief VerifyStage: make sure that race records are internally consistent
|
|
|
|
class RaceCheckStage : public Stage
|
|
|
|
{
|
|
|
|
const CSMWorld::IdCollection<ESM::Race>& mRaces;
|
2013-04-06 17:20:59 +00:00
|
|
|
bool mPlayable;
|
|
|
|
|
|
|
|
void performPerRecord (int stage, std::vector<std::string>& messages);
|
|
|
|
|
|
|
|
void performFinal (std::vector<std::string>& messages);
|
2013-04-06 15:35:36 +00:00
|
|
|
|
|
|
|
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
|