1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-27 12:40:25 +00:00

Add operator<< for DetourNavigator::AreaCosts

This commit is contained in:
elsid 2023-04-28 13:44:09 +02:00
parent ce5fbd6b68
commit dd08154b23
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625
2 changed files with 10 additions and 0 deletions

View file

@ -215,6 +215,13 @@ namespace DetourNavigator
return stream << "TilesPositionsRange {" << value.mBegin << ", " << value.mEnd << "}"; 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, void writeToFile(const RecastMesh& recastMesh, const std::string& pathPrefix, const std::string& revision,
const RecastSettings& settings) const RecastSettings& settings)
{ {

View file

@ -20,6 +20,7 @@ namespace DetourNavigator
{ {
struct Version; struct Version;
struct TilesPositionsRange; struct TilesPositionsRange;
struct AreaCosts;
std::ostream& operator<<(std::ostream& stream, const TileBounds& value); 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 TilesPositionsRange& value);
std::ostream& operator<<(std::ostream& stream, const AreaCosts& value);
class RecastMesh; class RecastMesh;
struct RecastSettings; struct RecastSettings;