mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +00:00
65cdd489fb
Fixed some types removed useless header applied clang format fixed compile tests fixed clang tidy, and closer to logic before this MR Removed hardcoded refids unless there is a returned value we don't use static RefIds can use == between RefId and hardcoded string Fix clang format Fixed a few instances where std::string was used, when only const std::string& was needed removed unused variable
43 lines
999 B
C++
43 lines
999 B
C++
#ifndef CSM_TOOLS_MANDATORYID_H
|
|
#define CSM_TOOLS_MANDATORYID_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "../doc/stage.hpp"
|
|
#include "../world/universalid.hpp"
|
|
#include <components/esm/refid.hpp>
|
|
|
|
namespace CSMDoc
|
|
{
|
|
class Messages;
|
|
}
|
|
|
|
namespace CSMWorld
|
|
{
|
|
class CollectionBase;
|
|
}
|
|
|
|
namespace CSMTools
|
|
{
|
|
/// \brief Verify stage: make sure that records with specific IDs exist.
|
|
class MandatoryIdStage : public CSMDoc::Stage
|
|
{
|
|
const CSMWorld::CollectionBase& mIdCollection;
|
|
CSMWorld::UniversalId mCollectionId;
|
|
std::vector<ESM::RefId> mIds;
|
|
|
|
public:
|
|
MandatoryIdStage(const CSMWorld::CollectionBase& idCollection, const CSMWorld::UniversalId& collectionId,
|
|
const std::vector<ESM::RefId>& ids);
|
|
|
|
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
|