2010-08-07 13:11:31 +00:00
|
|
|
#ifndef GAME_MWWORLD_MANUALREF_H
|
|
|
|
#define GAME_MWWORLD_MANUALREF_H
|
|
|
|
|
|
|
|
#include <boost/any.hpp>
|
|
|
|
|
|
|
|
#include "ptr.hpp"
|
|
|
|
|
|
|
|
namespace MWWorld
|
|
|
|
{
|
|
|
|
/// \brief Manually constructed live cell ref
|
|
|
|
class ManualRef
|
|
|
|
{
|
|
|
|
boost::any mRef;
|
|
|
|
Ptr mPtr;
|
|
|
|
|
|
|
|
ManualRef (const ManualRef&);
|
|
|
|
ManualRef& operator= (const ManualRef&);
|
|
|
|
|
|
|
|
public:
|
2015-02-09 14:01:49 +00:00
|
|
|
ManualRef(const MWWorld::ESMStore& store, const std::string& name, const int count = 1);
|
2010-08-07 13:11:31 +00:00
|
|
|
|
|
|
|
const Ptr& getPtr() const
|
|
|
|
{
|
|
|
|
return mPtr;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|