1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-23 22:53:55 +00:00
openmw/apps/opencs/model/tools/soundgencheck.hpp

47 lines
1.1 KiB
C++
Raw Normal View History

2015-06-13 16:08:31 +00:00
#ifndef CSM_TOOLS_SOUNDGENCHECK_HPP
#define CSM_TOOLS_SOUNDGENCHECK_HPP
2022-08-19 17:19:42 +00:00
#include "../world/idcollection.hpp"
2015-06-13 16:08:31 +00:00
#include "../doc/stage.hpp"
2022-10-19 17:02:00 +00:00
namespace CSMDoc
{
class Messages;
}
namespace CSMWorld
{
class RefIdCollection;
}
2022-08-19 17:19:42 +00:00
namespace ESM
{
struct SoundGenerator;
struct Sound;
}
2015-06-13 16:08:31 +00:00
namespace CSMTools
{
/// \brief VerifyStage: make sure that sound gen records are internally consistent
class SoundGenCheckStage : public CSMDoc::Stage
{
2022-09-22 18:26:05 +00:00
const CSMWorld::IdCollection<ESM::SoundGenerator>& mSoundGens;
const CSMWorld::IdCollection<ESM::Sound>& mSounds;
const CSMWorld::RefIdCollection& mObjects;
bool mIgnoreBaseRecords;
2015-06-13 16:08:31 +00:00
2022-09-22 18:26:05 +00:00
public:
SoundGenCheckStage(const CSMWorld::IdCollection<ESM::SoundGenerator>& soundGens,
const CSMWorld::IdCollection<ESM::Sound>& sounds, const CSMWorld::RefIdCollection& objects);
2015-06-13 16:08:31 +00:00
2022-09-22 18:26:05 +00:00
int setup() override;
///< \return number of steps
2015-06-13 16:08:31 +00:00
2022-09-22 18:26:05 +00:00
void perform(int stage, CSMDoc::Messages& messages) override;
///< Messages resulting from this stage will be appended to \a messages.
2015-06-13 16:08:31 +00:00
};
}
#endif