mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
20da0892ef
Slowly moving through the open-cs errors Good progress in openCS Very good progress on openCS Getting closer with openCS OpenCS compiles and runs! Didn't have time to test it all though ix openMW everything compiles on windows?? Fix gcc Fix Clang
60 lines
1.5 KiB
C++
60 lines
1.5 KiB
C++
#ifndef CSM_TOOLS_MAGICEFFECTCHECK_HPP
|
|
#define CSM_TOOLS_MAGICEFFECTCHECK_HPP
|
|
|
|
#include <string>
|
|
|
|
#include <apps/opencs/model/world/universalid.hpp>
|
|
|
|
#include <components/esm3/loadsoun.hpp>
|
|
|
|
#include "../world/idcollection.hpp"
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
namespace CSMDoc
|
|
{
|
|
class Messages;
|
|
}
|
|
|
|
namespace CSMWorld
|
|
{
|
|
class RefIdCollection;
|
|
class Resources;
|
|
}
|
|
|
|
namespace ESM
|
|
{
|
|
struct MagicEffect;
|
|
struct Sound;
|
|
}
|
|
|
|
namespace CSMTools
|
|
{
|
|
/// \brief VerifyStage: make sure that magic effect records are internally consistent
|
|
class MagicEffectCheckStage : public CSMDoc::Stage
|
|
{
|
|
const CSMWorld::IdCollection<ESM::MagicEffect>& mMagicEffects;
|
|
const CSMWorld::IdCollection<ESM::Sound>& mSounds;
|
|
const CSMWorld::RefIdCollection& mObjects;
|
|
const CSMWorld::Resources& mIcons;
|
|
const CSMWorld::Resources& mTextures;
|
|
bool mIgnoreBaseRecords;
|
|
|
|
private:
|
|
std::string checkObject(
|
|
const ESM::RefId& id, const CSMWorld::UniversalId& type, const std::string& column) const;
|
|
|
|
public:
|
|
MagicEffectCheckStage(const CSMWorld::IdCollection<ESM::MagicEffect>& effects,
|
|
const CSMWorld::IdCollection<ESM::Sound>& sounds, const CSMWorld::RefIdCollection& objects,
|
|
const CSMWorld::Resources& icons, const CSMWorld::Resources& textures);
|
|
|
|
int setup() override;
|
|
///< \return number of steps
|
|
void perform(int stage, CSMDoc::Messages& messages) override;
|
|
///< Messages resulting from this tage will be appended to \a messages.
|
|
};
|
|
}
|
|
|
|
#endif
|