mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 21:19:57 +00:00
33 lines
522 B
C++
33 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
|