#include "repair.hpp" #include #include #include "../mwworld/ptr.hpp" namespace MWClass { std::string Repair::getName (const MWWorld::Ptr& ptr) const { ESMS::LiveCellRef *ref = ptr.get(); return ref->base->name; } std::string Repair::getScript (const MWWorld::Ptr& ptr) const { ESMS::LiveCellRef *ref = ptr.get(); return ref->base->script; } void Repair::registerSelf() { boost::shared_ptr instance (new Repair); registerClass (typeid (ESM::Repair).name(), instance); } }