openmw-tes3coop/apps/openmw/mwclass/ingredient.cpp
2010-08-03 17:11:41 +02:00

26 lines
567 B
C++

#include "ingredient.hpp"
#include <components/esm/loadingr.hpp>
#include <components/esm_store/cell_store.hpp>
#include "../mwworld/ptr.hpp"
namespace MWClass
{
std::string Ingredient::getName (const MWWorld::Ptr& ptr) const
{
ESMS::LiveCellRef<ESM::Ingredient, MWWorld::RefData> *ref =
ptr.get<ESM::Ingredient>();
return ref->base->name;
}
void Ingredient::registerSelf()
{
boost::shared_ptr<Class> instance (new Ingredient);
registerClass (typeid (ESM::Ingredient).name(), instance);
}
}