1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 21:40:03 +00:00
OpenMW/apps/openmw/mwworld/manualref.hpp
2022-09-22 21:35:26 +03:00

27 lines
503 B
C++

#ifndef GAME_MWWORLD_MANUALREF_H
#define GAME_MWWORLD_MANUALREF_H
#include <any>
#include "ptr.hpp"
namespace MWWorld
{
/// \brief Manually constructed live cell ref
class ManualRef
{
std::any mRef;
Ptr mPtr;
ManualRef(const ManualRef&);
ManualRef& operator=(const ManualRef&);
public:
ManualRef(const MWWorld::ESMStore& store, std::string_view name, const int count = 1);
const Ptr& getPtr() const { return mPtr; }
};
}
#endif