mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 02:15:33 +00:00
26 lines
567 B
C++
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);
|
|
}
|
|
}
|