diff --git a/components/detournavigator/debug.cpp b/components/detournavigator/debug.cpp index 0eb47d8f88..9aa28c84f2 100644 --- a/components/detournavigator/debug.cpp +++ b/components/detournavigator/debug.cpp @@ -222,6 +222,15 @@ namespace DetourNavigator << ", .mPathgrid = " << value.mPathgrid << ", .mGround = " << value.mGround << "}"; } + std::ostream& operator<<(std::ostream& stream, const DetourSettings& value) + { + return stream << "DetourSettings {" + << ".mMaxPolys = " << value.mMaxPolys + << ", .mMaxNavMeshQueryNodes = " << value.mMaxNavMeshQueryNodes + << ", .mMaxPolygonPathSize = " << value.mMaxPolygonPathSize + << ", .mMaxSmoothPathSize = " << value.mMaxSmoothPathSize << "}"; + } + void writeToFile(const RecastMesh& recastMesh, const std::string& pathPrefix, const std::string& revision, const RecastSettings& settings) { diff --git a/components/detournavigator/debug.hpp b/components/detournavigator/debug.hpp index b6d8438f83..84a9e88ca3 100644 --- a/components/detournavigator/debug.hpp +++ b/components/detournavigator/debug.hpp @@ -21,6 +21,7 @@ namespace DetourNavigator struct Version; struct TilesPositionsRange; struct AreaCosts; + struct DetourSettings; std::ostream& operator<<(std::ostream& stream, const TileBounds& value); @@ -64,6 +65,8 @@ namespace DetourNavigator std::ostream& operator<<(std::ostream& stream, const AreaCosts& value); + std::ostream& operator<<(std::ostream& stream, const DetourSettings& value); + class RecastMesh; struct RecastSettings;