mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 05:49:56 +00:00
60 lines
3.5 KiB
C++
60 lines
3.5 KiB
C++
#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, const CSMWorld::IdCollection<ESM::Race>& races, const CSMWorld::IdCollection<ESM::Class>& classes);
|
|
virtual void perform(int stage, std::vector< std::string >& messages);
|
|
virtual int setup();
|
|
|
|
private:
|
|
//CONCRETE CHECKS
|
|
void bookCheck(int stage, const CSMWorld::RefIdDataContainer< ESM::Book >& records, std::vector< std::string >& messages);
|
|
void activatorCheck(int stage, const CSMWorld::RefIdDataContainer< ESM::Activator >& records, std::vector< std::string >& messages);
|
|
void potionCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::Potion>& records, std::vector<std::string>& messages);
|
|
void apparatusCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::Apparatus>& records, std::vector<std::string>& messages);
|
|
void armorCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::Armor>& records, std::vector<std::string>& messages);
|
|
void clothingCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::Clothing>& records, std::vector<std::string>& messages);
|
|
void containerCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::Container>& records, std::vector<std::string>& messages);
|
|
void creatureCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::Creature>& records, std::vector<std::string>& messages);
|
|
void doorCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::Door>& records, std::vector<std::string>& messages);
|
|
void ingredientCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::Ingredient>& records, std::vector<std::string>& messages);
|
|
void creaturesLevListCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::CreatureLevList>& records, std::vector<std::string>& messages);
|
|
void itemLevelledListCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::ItemLevList>& records, std::vector<std::string>& messages);
|
|
void lightCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::Light>& records, std::vector<std::string>& messages);
|
|
void lockpickCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::Lockpick>& records, std::vector<std::string>& messages);
|
|
void miscCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::Miscellaneous>& records, std::vector<std::string>& messages);
|
|
void npcCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::NPC>& records, std::vector<std::string>& messages);
|
|
|
|
const CSMWorld::RefIdData& mReferencables;
|
|
const CSMWorld::IdCollection<ESM::Race>& mRaces;
|
|
const CSMWorld::IdCollection<ESM::Class>& mClasses;
|
|
|
|
//SIZES OF CONCRETE TYPES
|
|
const int mBooksSize;
|
|
const int mActivatorsSize;
|
|
const int mPotionsSize;
|
|
const int mApparatiSize;
|
|
const int mArmorsSzie;
|
|
const int mClothingSize;
|
|
const int mContainersSize;
|
|
const int mCreaturesSize;
|
|
const int mDoorsSize;
|
|
const int mIngredientsSize;
|
|
const int mCreaturesLevListsSize;
|
|
const int mItemLevelledListsSize;
|
|
const int mLightsSize;
|
|
const int mLockpicksSize;
|
|
const int mMiscellaneousSize;
|
|
const int mNPCsSize;
|
|
};
|
|
}
|
|
#endif // REFERENCEABLECHECKSTAGE_H
|