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:
|
2022-05-21 01:21:55 +02:00
|
|
|
ManualRef(const MWWorld::ESMStore& store, std::string_view name, const int count = 1);
|
2010-08-07 15:11:31 +02:00
|
|
|
|
|
|
|
const Ptr& getPtr() const
|
|
|
|
{
|
|
|
|
return mPtr;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|