mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 23:49:55 +00:00
26 lines
560 B
C++
26 lines
560 B
C++
|
|
#include "apparatus.hpp"
|
|
|
|
#include <components/esm/loadappa.hpp>
|
|
|
|
#include <components/esm_store/cell_store.hpp>
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
namespace MWClass
|
|
{
|
|
std::string Apparatus::getName (const MWWorld::Ptr& ptr) const
|
|
{
|
|
ESMS::LiveCellRef<ESM::Apparatus, MWWorld::RefData> *ref =
|
|
ptr.get<ESM::Apparatus>();
|
|
|
|
return ref->base->name;
|
|
}
|
|
|
|
void Apparatus::registerSelf()
|
|
{
|
|
boost::shared_ptr<Class> instance (new Apparatus);
|
|
|
|
registerClass (typeid (ESM::Apparatus).name(), instance);
|
|
}
|
|
}
|