1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-06 18:40:23 +00:00
OpenMW/apps/openmw/mwworld/manualref.hpp

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-09-22 21:26:05 +03:00
std::any mRef;
Ptr mPtr;
2010-08-07 15:11:31 +02:00
2022-09-22 21:26:05 +03:00
ManualRef(const ManualRef&);
ManualRef& operator=(const ManualRef&);
2010-08-07 15:11:31 +02:00
2022-09-22 21:26:05 +03:00
public:
ManualRef(const MWWorld::ESMStore& store, const ESM::RefId& name, const int count = 1);
2010-08-07 15:11:31 +02:00
2022-09-22 21:26:05 +03:00
const Ptr& getPtr() const { return mPtr; }
2010-08-07 15:11:31 +02:00
};
}
#endif