2018-03-14 01:49:08 +03:00
|
|
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_DEBUG_H
|
|
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_DEBUG_H
|
|
|
|
|
2022-06-17 00:28:44 +02:00
|
|
|
#include "agentbounds.hpp"
|
2022-06-26 19:36:03 +02:00
|
|
|
#include "areatype.hpp"
|
|
|
|
#include "changetype.hpp"
|
|
|
|
#include "flags.hpp"
|
2021-11-05 23:48:48 +01:00
|
|
|
#include "recastmesh.hpp"
|
2020-01-28 22:24:51 +01:00
|
|
|
#include "status.hpp"
|
2018-03-14 01:49:08 +03:00
|
|
|
#include "tilebounds.hpp"
|
|
|
|
|
2022-06-26 19:36:03 +02:00
|
|
|
#include <DetourStatus.h>
|
2018-03-14 01:49:08 +03:00
|
|
|
|
2022-06-26 19:36:03 +02:00
|
|
|
#include <iosfwd>
|
2018-03-14 01:49:08 +03:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class dtNavMesh;
|
|
|
|
|
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
2021-09-18 15:52:03 +02:00
|
|
|
struct Version;
|
2022-08-28 16:43:43 +02:00
|
|
|
struct TilesPositionsRange;
|
2023-04-28 13:44:09 +02:00
|
|
|
struct AreaCosts;
|
2023-05-08 22:28:32 +02:00
|
|
|
struct DetourSettings;
|
2021-09-18 15:52:03 +02:00
|
|
|
|
2022-06-26 19:36:03 +02:00
|
|
|
std::ostream& operator<<(std::ostream& stream, const TileBounds& value);
|
2018-03-14 01:49:08 +03:00
|
|
|
|
2022-06-26 19:36:03 +02:00
|
|
|
std::ostream& operator<<(std::ostream& stream, Status value);
|
2021-11-05 23:48:48 +01:00
|
|
|
|
2022-06-26 19:36:03 +02:00
|
|
|
std::ostream& operator<<(std::ostream& s, const Water& v);
|
2021-11-05 23:48:48 +01:00
|
|
|
|
2022-06-26 19:36:03 +02:00
|
|
|
std::ostream& operator<<(std::ostream& s, const CellWater& v);
|
2021-11-05 23:48:48 +01:00
|
|
|
|
2022-06-26 19:36:03 +02:00
|
|
|
std::ostream& operator<<(std::ostream& s, const FlatHeightfield& v);
|
|
|
|
|
|
|
|
std::ostream& operator<<(std::ostream& s, const Heightfield& v);
|
|
|
|
|
|
|
|
std::ostream& operator<<(std::ostream& s, CollisionShapeType v);
|
|
|
|
|
|
|
|
std::ostream& operator<<(std::ostream& s, const AgentBounds& v);
|
|
|
|
|
|
|
|
struct WriteDtStatus
|
2022-06-17 00:28:44 +02:00
|
|
|
{
|
2022-06-26 19:36:03 +02:00
|
|
|
dtStatus mStatus;
|
|
|
|
};
|
|
|
|
|
|
|
|
std::ostream& operator<<(std::ostream& stream, const WriteDtStatus& value);
|
|
|
|
|
|
|
|
std::ostream& operator<<(std::ostream& stream, const Flag value);
|
|
|
|
|
|
|
|
struct WriteFlags
|
2022-06-17 00:28:44 +02:00
|
|
|
{
|
2022-06-26 19:36:03 +02:00
|
|
|
Flags mValue;
|
|
|
|
};
|
|
|
|
|
|
|
|
std::ostream& operator<<(std::ostream& stream, const WriteFlags& value);
|
|
|
|
|
|
|
|
std::ostream& operator<<(std::ostream& stream, AreaType value);
|
|
|
|
|
|
|
|
std::ostream& operator<<(std::ostream& stream, ChangeType value);
|
2022-06-17 00:28:44 +02:00
|
|
|
|
2021-09-18 15:52:03 +02:00
|
|
|
std::ostream& operator<<(std::ostream& stream, const Version& value);
|
|
|
|
|
2022-08-28 16:43:43 +02:00
|
|
|
std::ostream& operator<<(std::ostream& stream, const TilesPositionsRange& value);
|
|
|
|
|
2023-04-28 13:44:09 +02:00
|
|
|
std::ostream& operator<<(std::ostream& stream, const AreaCosts& value);
|
|
|
|
|
2023-05-08 22:28:32 +02:00
|
|
|
std::ostream& operator<<(std::ostream& stream, const DetourSettings& value);
|
|
|
|
|
2018-03-14 01:49:08 +03:00
|
|
|
class RecastMesh;
|
2021-11-06 13:46:43 +01:00
|
|
|
struct RecastSettings;
|
2018-03-14 01:49:08 +03:00
|
|
|
|
2021-11-06 13:46:43 +01:00
|
|
|
void writeToFile(const RecastMesh& recastMesh, const std::string& pathPrefix, const std::string& revision,
|
|
|
|
const RecastSettings& settings);
|
2018-04-01 18:09:43 +03:00
|
|
|
void writeToFile(const dtNavMesh& navMesh, const std::string& pathPrefix, const std::string& revision);
|
2018-03-14 01:49:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|