OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
magiceffectcheck.hpp
Go to the documentation of this file.
1 #ifndef CSM_TOOLS_MAGICEFFECTCHECK_HPP
2 #define CSM_TOOLS_MAGICEFFECTCHECK_HPP
3 
6 
7 #include "../world/idcollection.hpp"
8 #include "../world/refidcollection.hpp"
9 
10 #include "../doc/stage.hpp"
11 
12 namespace CSMWorld
13 {
14  class Resources;
15 }
16 
17 namespace CSMTools
18 {
21  {
27 
28  private:
29  bool isTextureExists(const std::string &texture, bool isIcon) const;
30 
31  std::string checkReferenceable(const std::string &id,
32  const CSMWorld::UniversalId &type,
33  const std::string &column) const;
34  std::string checkSound(const std::string &id, const std::string &column) const;
35 
36  public:
39  const CSMWorld::RefIdCollection &referenceables,
40  const CSMWorld::Resources &icons,
41  const CSMWorld::Resources &textures);
42 
43  virtual int setup();
45  virtual void perform (int stage, CSMDoc::Messages &messages);
47  };
48 }
49 
50 #endif
const CSMWorld::IdCollection< ESM::Sound > & mSounds
Definition: magiceffectcheck.hpp:23
Definition: messages.hpp:38
const CSMWorld::IdCollection< ESM::MagicEffect > & mMagicEffects
Definition: magiceffectcheck.hpp:22
bool isTextureExists(const std::string &texture, bool isIcon) const
Definition: magiceffectcheck.cpp:19
std::string checkReferenceable(const std::string &id, const CSMWorld::UniversalId &type, const std::string &column) const
Definition: magiceffectcheck.cpp:40
const CSMWorld::RefIdCollection & mReferenceables
Definition: magiceffectcheck.hpp:24
virtual int setup()
Definition: magiceffectcheck.cpp:82
Definition: resources.hpp:17
VerifyStage: make sure that magic effect records are internally consistent.
Definition: magiceffectcheck.hpp:20
MagicEffectCheckStage(const CSMWorld::IdCollection< ESM::MagicEffect > &effects, const CSMWorld::IdCollection< ESM::Sound > &sounds, const CSMWorld::RefIdCollection &referenceables, const CSMWorld::Resources &icons, const CSMWorld::Resources &textures)
Definition: magiceffectcheck.cpp:70
Definition: stage.hpp:15
virtual void perform(int stage, CSMDoc::Messages &messages)
Messages resulting from this tage will be appended to messages.
Definition: magiceffectcheck.cpp:87
Definition: refidcollection.hpp:40
std::string checkSound(const std::string &id, const std::string &column) const
Definition: magiceffectcheck.cpp:60
const CSMWorld::Resources & mIcons
Definition: magiceffectcheck.hpp:25
const CSMWorld::Resources & mTextures
Definition: magiceffectcheck.hpp:26
Definition: universalid.hpp:12