mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 08:56:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_CACHEDRECASTMESHMANAGER_H
 | |
| #define OPENMW_COMPONENTS_DETOURNAVIGATOR_CACHEDRECASTMESHMANAGER_H
 | |
| 
 | |
| #include "recastmeshmanager.hpp"
 | |
| 
 | |
| #include <boost/optional.hpp>
 | |
| 
 | |
| namespace DetourNavigator
 | |
| {
 | |
|     class CachedRecastMeshManager
 | |
|     {
 | |
|     public:
 | |
|         CachedRecastMeshManager(const Settings& settings, const TileBounds& bounds, std::size_t generation);
 | |
| 
 | |
|         bool addObject(const ObjectId id, const btCollisionShape& shape, const btTransform& transform,
 | |
|                        const AreaType areaType);
 | |
| 
 | |
|         bool updateObject(const ObjectId id, const btTransform& transform, const AreaType areaType);
 | |
| 
 | |
|         bool addWater(const osg::Vec2i& cellPosition, const int cellSize, const btTransform& transform);
 | |
| 
 | |
|         boost::optional<RecastMeshManager::Water> removeWater(const osg::Vec2i& cellPosition);
 | |
| 
 | |
|         boost::optional<RemovedRecastMeshObject> removeObject(const ObjectId id);
 | |
| 
 | |
|         std::shared_ptr<RecastMesh> getMesh();
 | |
| 
 | |
|         bool isEmpty() const;
 | |
| 
 | |
|     private:
 | |
|         RecastMeshManager mImpl;
 | |
|         std::shared_ptr<RecastMesh> mCached;
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif
 |