1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/apps/openmw/mwworld/manualref.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
504 B
C++
Raw Normal View History

2010-08-07 15:11:31 +02:00
#ifndef GAME_MWWORLD_MANUALREF_H
#define GAME_MWWORLD_MANUALREF_H
2022-05-22 02:16:01 +02:00
#include <any>
2010-08-07 15:11:31 +02:00
#include "ptr.hpp"
namespace MWWorld
{
/// \brief Manually constructed live cell ref
class ManualRef
{
2022-05-22 02:16:01 +02:00
std::any mRef;
2010-08-07 15:11:31 +02:00
Ptr mPtr;
ManualRef(const ManualRef&);
ManualRef& operator=(const ManualRef&);
public:
ManualRef(const MWWorld::ESMStore& store, const ESM::RefId& name, const int count = 1);
2010-08-07 15:11:31 +02:00
const Ptr& getPtr() const { return mPtr; }
};
}
#endif