Add operator<< for DetourNavigator::AreaCosts

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

@ -215,6 +215,13 @@ namespace DetourNavigator
return stream << "TilesPositionsRange {" << value.mBegin << ", " << value.mEnd << "}";
}
std::ostream& operator<<(std::ostream& stream, const AreaCosts& value)
{
return stream << "AreaCosts {"
<< ".mWater = " << value.mWater << ", .mDoor = " << value.mDoor
<< ", .mPathgrid = " << value.mPathgrid << ", .mGround = " << value.mGround << "}";
}
void writeToFile(const RecastMesh& recastMesh, const std::string& pathPrefix, const std::string& revision,
const RecastSettings& settings)
{

@ -20,6 +20,7 @@ namespace DetourNavigator
{
struct Version;
struct TilesPositionsRange;
struct AreaCosts;
std::ostream& operator<<(std::ostream& stream, const TileBounds& value);
@ -61,6 +62,8 @@ namespace DetourNavigator
std::ostream& operator<<(std::ostream& stream, const TilesPositionsRange& value);
std::ostream& operator<<(std::ostream& stream, const AreaCosts& value);
class RecastMesh;
struct RecastSettings;

Loading…
Cancel
Save