Add operator<< for DetourSettings

revert-6246b479
elsid 2 years ago
parent dd08154b23
commit f9e9368fda
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

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

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

Loading…
Cancel
Save