mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
34 lines
522 B
C++
34 lines
522 B
C++
#ifndef OPENMW_MWPHYSICS_PTRHOLDER_H
|
|
#define OPENMW_MWPHYSICS_PTRHOLDER_H
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
namespace MWPhysics
|
|
{
|
|
class PtrHolder
|
|
{
|
|
public:
|
|
virtual ~PtrHolder() {}
|
|
|
|
void updatePtr(const MWWorld::Ptr& updated)
|
|
{
|
|
mPtr = updated;
|
|
}
|
|
|
|
MWWorld::Ptr getPtr()
|
|
{
|
|
return mPtr;
|
|
}
|
|
|
|
MWWorld::ConstPtr getPtr() const
|
|
{
|
|
return mPtr;
|
|
}
|
|
|
|
protected:
|
|
MWWorld::Ptr mPtr;
|
|
};
|
|
}
|
|
|
|
#endif
|