2013-12-20 19:02:42 +00:00
|
|
|
#ifndef REFERENCEABLECHECKSTAGE_H
|
|
|
|
#define REFERENCEABLECHECKSTAGE_H
|
|
|
|
|
|
|
|
#include "../world/universalid.hpp"
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
#include "../world/data.hpp"
|
|
|
|
#include "../world/refiddata.hpp"
|
|
|
|
|
|
|
|
namespace CSMTools
|
|
|
|
{
|
|
|
|
class ReferenceableCheckStage : public CSMDoc::Stage
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ReferenceableCheckStage(const CSMWorld::RefIdData& referenceable);
|
|
|
|
virtual void perform(int stage, std::vector< std::string >& messages);
|
|
|
|
virtual int setup();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void bookCheck(int stage, const CSMWorld::RefIdDataContainer< ESM::Book >& records, std::vector< std::string >& messages);
|
2013-12-20 21:31:17 +00:00
|
|
|
void activatorCheck(int stage, const CSMWorld::RefIdDataContainer< ESM::Activator >& records, std::vector< std::string >& messages);
|
2013-12-20 19:02:42 +00:00
|
|
|
void setSizeVariables();
|
|
|
|
|
|
|
|
const CSMWorld::RefIdData mReferencables;
|
|
|
|
int mBooksSize;
|
2013-12-20 21:31:17 +00:00
|
|
|
int mActivatorsSize;
|
2013-12-21 10:02:58 +00:00
|
|
|
int mPotionsSize;
|
2013-12-20 19:02:42 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // REFERENCEABLECHECKSTAGE_H
|