2018-03-13 22:49:08 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_DEBUG_H
|
|
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_DEBUG_H
|
|
|
|
|
|
|
|
#include "tilebounds.hpp"
|
2020-01-28 21:24:51 +00:00
|
|
|
#include "status.hpp"
|
2021-11-05 22:48:48 +00:00
|
|
|
#include "recastmesh.hpp"
|
2022-06-16 22:28:44 +00:00
|
|
|
#include "agentbounds.hpp"
|
2022-06-26 17:36:03 +00:00
|
|
|
#include "flags.hpp"
|
|
|
|
#include "areatype.hpp"
|
|
|
|
#include "changetype.hpp"
|
2018-03-13 22:49:08 +00:00
|
|
|
|
2022-06-26 17:36:03 +00:00
|
|
|
#include <DetourStatus.h>
|
2018-03-13 22:49:08 +00:00
|
|
|
|
|
|
|
#include <string>
|
2022-06-26 17:36:03 +00:00
|
|
|
#include <iosfwd>
|
2018-03-13 22:49:08 +00:00
|
|
|
|
|
|
|
class dtNavMesh;
|
|
|
|
|
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
2021-09-18 13:52:03 +00:00
|
|
|
struct Version;
|
|
|
|
|
2022-06-26 17:36:03 +00:00
|
|
|
std::ostream& operator<<(std::ostream& stream, const TileBounds& value);
|
2018-03-13 22:49:08 +00:00
|
|
|
|
2022-06-26 17:36:03 +00:00
|
|
|
std::ostream& operator<<(std::ostream& stream, Status value);
|
2021-11-05 22:48:48 +00:00
|
|
|
|
2022-06-26 17:36:03 +00:00
|
|
|
std::ostream& operator<<(std::ostream& s, const Water& v);
|
2021-11-05 22:48:48 +00:00
|
|
|
|
2022-06-26 17:36:03 +00:00
|
|
|
std::ostream& operator<<(std::ostream& s, const CellWater& v);
|
2021-11-05 22:48:48 +00:00
|
|
|
|
2022-06-26 17:36:03 +00: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-16 22:28:44 +00:00
|
|
|
{
|
2022-06-26 17:36:03 +00: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-16 22:28:44 +00:00
|
|
|
{
|
2022-06-26 17:36:03 +00: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-16 22:28:44 +00:00
|
|
|
|
2021-09-18 13:52:03 +00:00
|
|
|
std::ostream& operator<<(std::ostream& stream, const Version& value);
|
|
|
|
|
2018-03-13 22:49:08 +00:00
|
|
|
class RecastMesh;
|
2021-11-06 12:46:43 +00:00
|
|
|
struct RecastSettings;
|
2018-03-13 22:49:08 +00:00
|
|
|
|
2021-11-06 12:46:43 +00:00
|
|
|
void writeToFile(const RecastMesh& recastMesh, const std::string& pathPrefix,
|
|
|
|
const std::string& revision, const RecastSettings& settings);
|
2018-04-01 15:09:43 +00:00
|
|
|
void writeToFile(const dtNavMesh& navMesh, const std::string& pathPrefix, const std::string& revision);
|
2018-03-13 22:49:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|