1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 11:39:42 +00:00

Add operator<< for DetourSettings

This commit is contained in:
elsid 2023-05-08 22:28:32 +02:00
parent dd08154b23
commit f9e9368fda
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625
2 changed files with 12 additions and 0 deletions

View file

@ -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)
{

View file

@ -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;