#ifndef OPENMW_MWPHYSICS_PTRHOLDER_H #define OPENMW_MWPHYSICS_PTRHOLDER_H #include #include #include #include "../mwworld/ptr.hpp" namespace MWPhysics { class PtrHolder { public: virtual ~PtrHolder() = default; void updatePtr(const MWWorld::Ptr& updated) { mPtr = updated; } MWWorld::Ptr getPtr() { return mPtr; } btCollisionObject* getCollisionObject() const { return mCollisionObject.get(); } protected: MWWorld::Ptr mPtr; std::unique_ptr mCollisionObject; }; } #endif