mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 21:49:56 +00:00
d9bbd83b09
Accept a ConstPtr in functions used by getToolTipInfo
23 lines
514 B
C++
23 lines
514 B
C++
#include "itemlevlist.hpp"
|
|
|
|
#include <components/esm/loadlevlist.hpp>
|
|
|
|
namespace MWClass
|
|
{
|
|
std::string ItemLevList::getId (const MWWorld::Ptr& ptr) const
|
|
{
|
|
return ptr.get<ESM::ItemLevList>()->mBase->mId;
|
|
}
|
|
|
|
std::string ItemLevList::getName (const MWWorld::ConstPtr& ptr) const
|
|
{
|
|
return "";
|
|
}
|
|
|
|
void ItemLevList::registerSelf()
|
|
{
|
|
boost::shared_ptr<Class> instance (new ItemLevList);
|
|
|
|
registerClass (typeid (ESM::ItemLevList).name(), instance);
|
|
}
|
|
}
|