mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 05:19:55 +00:00
34 lines
773 B
C++
34 lines
773 B
C++
|
|
#include "clothing.hpp"
|
|
|
|
#include <components/esm/loadclot.hpp>
|
|
|
|
#include <components/esm_store/cell_store.hpp>
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
namespace MWClass
|
|
{
|
|
std::string Clothing::getName (const MWWorld::Ptr& ptr) const
|
|
{
|
|
ESMS::LiveCellRef<ESM::Clothing, MWWorld::RefData> *ref =
|
|
ptr.get<ESM::Clothing>();
|
|
|
|
return ref->base->name;
|
|
}
|
|
|
|
std::string Clothing::getScript (const MWWorld::Ptr& ptr) const
|
|
{
|
|
ESMS::LiveCellRef<ESM::Clothing, MWWorld::RefData> *ref =
|
|
ptr.get<ESM::Clothing>();
|
|
|
|
return ref->base->script;
|
|
}
|
|
|
|
void Clothing::registerSelf()
|
|
{
|
|
boost::shared_ptr<Class> instance (new Clothing);
|
|
|
|
registerClass (typeid (ESM::Clothing).name(), instance);
|
|
}
|
|
}
|