2013-04-06 21:48:52 +02:00
|
|
|
#ifndef CSM_TOOLS_SOUNDCHECK_H
|
|
|
|
#define CSM_TOOLS_SOUNDCHECK_H
|
|
|
|
|
|
|
|
#include <components/esm/loadsoun.hpp>
|
|
|
|
|
2018-08-26 22:16:50 +03:00
|
|
|
#include "../world/resources.hpp"
|
2013-04-06 21:48:52 +02:00
|
|
|
#include "../world/idcollection.hpp"
|
|
|
|
|
2013-09-14 14:56:23 +02:00
|
|
|
#include "../doc/stage.hpp"
|
2013-04-06 21:48:52 +02:00
|
|
|
|
|
|
|
namespace CSMTools
|
|
|
|
{
|
|
|
|
/// \brief VerifyStage: make sure that sound records are internally consistent
|
2013-09-14 14:56:23 +02:00
|
|
|
class SoundCheckStage : public CSMDoc::Stage
|
2013-04-06 21:48:52 +02:00
|
|
|
{
|
|
|
|
const CSMWorld::IdCollection<ESM::Sound>& mSounds;
|
2018-08-25 00:47:38 +03:00
|
|
|
const CSMWorld::Resources &mSoundFiles;
|
2018-06-20 00:20:03 +02:00
|
|
|
bool mIgnoreBaseRecords;
|
2013-04-06 21:48:52 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
2018-08-25 00:47:38 +03:00
|
|
|
SoundCheckStage (const CSMWorld::IdCollection<ESM::Sound>& sounds,
|
|
|
|
const CSMWorld::Resources &soundfiles);
|
2013-04-06 21:48:52 +02:00
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
int setup() override;
|
2013-04-06 21:48:52 +02:00
|
|
|
///< \return number of steps
|
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void perform (int stage, CSMDoc::Messages& messages) override;
|
2013-04-06 21:48:52 +02:00
|
|
|
///< Messages resulting from this tage will be appended to \a messages.
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|