1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-17 01:10:10 +00:00
OpenMW/apps/openmw/mwclass/classmodel.hpp

20 lines
402 B
C++
Raw Normal View History

#ifndef OPENMW_MWCLASS_CLASSMODEL_H
#define OPENMW_MWCLASS_CLASSMODEL_H
#include "../mwworld/livecellref.hpp"
2022-09-22 18:26:05 +00:00
#include "../mwworld/ptr.hpp"
#include <string_view>
namespace MWClass
{
template <class Class>
std::string_view getClassModel(const MWWorld::ConstPtr& ptr)
{
2022-09-22 18:26:05 +00:00
const MWWorld::LiveCellRef<Class>* ref = ptr.get<Class>();
return ref->mBase->mModel;
}
}
#endif