|
|
@ -92,6 +92,21 @@ namespace
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct IdGettingVisitor : public boost::static_visitor<std::string>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
std::string operator()(const MWWorld::Ptr& ptr) const
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if(ptr.isEmpty())
|
|
|
|
|
|
|
|
return {};
|
|
|
|
|
|
|
|
return ptr.mRef->mRef.getRefId();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::string operator()(const std::pair<ESM::RefNum, std::string>& pair) const
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return pair.second;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
namespace MWScript
|
|
|
|
namespace MWScript
|
|
|
@ -110,6 +125,11 @@ namespace MWScript
|
|
|
|
return ptr;
|
|
|
|
return ptr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::string GlobalScriptDesc::getId() const
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return boost::apply_visitor(IdGettingVisitor(), mTarget);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GlobalScripts::GlobalScripts (const MWWorld::ESMStore& store)
|
|
|
|
GlobalScripts::GlobalScripts (const MWWorld::ESMStore& store)
|
|
|
|
: mStore (store)
|
|
|
|
: mStore (store)
|
|
|
|