You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
|