Replace include by RecastMesh forward declaration

To reduce dependency between navigator interface and implementation.
This commit is contained in:
elsid 2021-05-04 12:58:57 +02:00
parent ec87b3f8f7
commit 865ef56a09
No known key found for this signature in database
GPG key ID: D27B8E8D10A2896B
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,6 @@
#include "settings.hpp" #include "settings.hpp"
#include "objectid.hpp" #include "objectid.hpp"
#include "navmeshcacheitem.hpp" #include "navmeshcacheitem.hpp"
#include "recastmesh.hpp"
#include "recastmeshtiles.hpp" #include "recastmeshtiles.hpp"
namespace ESM namespace ESM

View file

@ -2,13 +2,14 @@
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_RECASTMESHTILE_H #define OPENMW_COMPONENTS_DETOURNAVIGATOR_RECASTMESHTILE_H
#include "tileposition.hpp" #include "tileposition.hpp"
#include "recastmesh.hpp"
#include <map> #include <map>
#include <memory> #include <memory>
namespace DetourNavigator namespace DetourNavigator
{ {
class RecastMesh;
using RecastMeshTiles = std::map<TilePosition, std::shared_ptr<RecastMesh>>; using RecastMeshTiles = std::map<TilePosition, std::shared_ptr<RecastMesh>>;
} }