|
|
@ -1,11 +1,17 @@
|
|
|
|
#ifndef REFERENCEABLECHECKSTAGE_H
|
|
|
|
#ifndef REFERENCEABLECHECKSTAGE_H
|
|
|
|
#define REFERENCEABLECHECKSTAGE_H
|
|
|
|
#define REFERENCEABLECHECKSTAGE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "../world/universalid.hpp"
|
|
|
|
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
#include "../world/data.hpp"
|
|
|
|
|
|
|
|
#include "../world/refiddata.hpp"
|
|
|
|
#include "../world/refiddata.hpp"
|
|
|
|
#include "../world/resources.hpp"
|
|
|
|
#include "../world/resources.hpp"
|
|
|
|
|
|
|
|
#include "../world/idcollection.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <components/esm3/loadfact.hpp>
|
|
|
|
|
|
|
|
#include <components/esm3/loadclas.hpp>
|
|
|
|
|
|
|
|
#include <components/esm3/loadrace.hpp>
|
|
|
|
|
|
|
|
#include <components/esm3/loadbody.hpp>
|
|
|
|
|
|
|
|
#include <components/esm3/loadscpt.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
namespace CSMTools
|
|
|
|
namespace CSMTools
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -54,31 +60,29 @@ namespace CSMTools
|
|
|
|
//Convenience functions
|
|
|
|
//Convenience functions
|
|
|
|
void inventoryListCheck(const std::vector<ESM::ContItem>& itemList, CSMDoc::Messages& messages, const std::string& id);
|
|
|
|
void inventoryListCheck(const std::vector<ESM::ContItem>& itemList, CSMDoc::Messages& messages, const std::string& id);
|
|
|
|
|
|
|
|
|
|
|
|
template<typename ITEM> void inventoryItemCheck(const ITEM& someItem,
|
|
|
|
/// for all enchantable items.
|
|
|
|
CSMDoc::Messages& messages,
|
|
|
|
template <typename Item>
|
|
|
|
const std::string& someID,
|
|
|
|
inline void inventoryItemCheck(const Item& someItem, CSMDoc::Messages& messages, const std::string& someID,
|
|
|
|
bool enchantable); //for all enchantable items.
|
|
|
|
bool enchantable);
|
|
|
|
|
|
|
|
|
|
|
|
template<typename ITEM> void inventoryItemCheck(const ITEM& someItem,
|
|
|
|
/// for non-enchantable items.
|
|
|
|
CSMDoc::Messages& messages,
|
|
|
|
template <typename Item>
|
|
|
|
const std::string& someID); //for non-enchantable items.
|
|
|
|
inline void inventoryItemCheck(const Item& someItem, CSMDoc::Messages& messages, const std::string& someID);
|
|
|
|
|
|
|
|
|
|
|
|
template<typename TOOL> void toolCheck(const TOOL& someTool,
|
|
|
|
/// for tools with uses.
|
|
|
|
CSMDoc::Messages& messages,
|
|
|
|
template <typename Tool>
|
|
|
|
const std::string& someID,
|
|
|
|
inline void toolCheck(const Tool& someTool, CSMDoc::Messages& messages, const std::string& someID,
|
|
|
|
bool canbebroken); //for tools with uses.
|
|
|
|
bool canbebroken);
|
|
|
|
|
|
|
|
|
|
|
|
template<typename TOOL> void toolCheck(const TOOL& someTool,
|
|
|
|
/// for tools without uses.
|
|
|
|
CSMDoc::Messages& messages,
|
|
|
|
template <typename Tool>
|
|
|
|
const std::string& someID); //for tools without uses.
|
|
|
|
inline void toolCheck(const Tool& someTool, CSMDoc::Messages& messages, const std::string& someID);
|
|
|
|
|
|
|
|
|
|
|
|
template<typename LIST> void listCheck(const LIST& someList,
|
|
|
|
template <typename List>
|
|
|
|
CSMDoc::Messages& messages,
|
|
|
|
inline void listCheck(const List& someList, CSMDoc::Messages& messages, const std::string& someID);
|
|
|
|
const std::string& someID);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename TOOL> void scriptCheck(const TOOL& someTool,
|
|
|
|
template <typename Tool>
|
|
|
|
CSMDoc::Messages& messages,
|
|
|
|
inline void scriptCheck(const Tool& someTool, CSMDoc::Messages& messages, const std::string& someID);
|
|
|
|
const std::string& someID);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const CSMWorld::RefIdData& mReferencables;
|
|
|
|
const CSMWorld::RefIdData& mReferencables;
|
|
|
|
const CSMWorld::IdCollection<ESM::Race>& mRaces;
|
|
|
|
const CSMWorld::IdCollection<ESM::Race>& mRaces;
|
|
|
|