2015-03-05 10:24:01 +00:00
|
|
|
#ifndef CSM_TOOLS_STARTSCRIPTCHECK_H
|
|
|
|
#define CSM_TOOLS_STARTSCRIPTCHECK_H
|
|
|
|
|
2022-01-22 14:58:41 +00:00
|
|
|
#include <components/esm3/loadscpt.hpp>
|
2015-03-05 10:24:01 +00:00
|
|
|
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
|
|
|
|
#include "../world/idcollection.hpp"
|
|
|
|
|
2022-10-19 17:02:00 +00:00
|
|
|
namespace CSMDoc
|
|
|
|
{
|
|
|
|
class Messages;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class Script;
|
|
|
|
struct StartScript;
|
|
|
|
}
|
|
|
|
|
2015-03-05 10:24:01 +00:00
|
|
|
namespace CSMTools
|
|
|
|
{
|
|
|
|
class StartScriptCheckStage : public CSMDoc::Stage
|
|
|
|
{
|
|
|
|
const CSMWorld::IdCollection<ESM::StartScript>& mStartScripts;
|
|
|
|
const CSMWorld::IdCollection<ESM::Script>& mScripts;
|
2018-06-19 22:20:03 +00:00
|
|
|
bool mIgnoreBaseRecords;
|
2015-03-05 10:24:01 +00:00
|
|
|
|
2022-09-22 18:26:05 +00:00
|
|
|
public:
|
2015-03-05 10:24:01 +00:00
|
|
|
StartScriptCheckStage(const CSMWorld::IdCollection<ESM::StartScript>& startScripts,
|
|
|
|
const CSMWorld::IdCollection<ESM::Script>& scripts);
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void perform(int stage, CSMDoc::Messages& messages) override;
|
|
|
|
int setup() override;
|
2015-03-05 10:24:01 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|