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