2018-03-13 22:49:08 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_SETTINGS_H
|
|
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_SETTINGS_H
|
|
|
|
|
2019-02-16 12:50:58 +00:00
|
|
|
#include <boost/optional.hpp>
|
|
|
|
|
2018-04-01 15:09:43 +00:00
|
|
|
#include <string>
|
2018-03-13 22:49:08 +00:00
|
|
|
|
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
|
|
|
struct Settings
|
|
|
|
{
|
2019-02-16 12:39:06 +00:00
|
|
|
bool mEnableWriteRecastMeshToFile = false;
|
|
|
|
bool mEnableWriteNavMeshToFile = false;
|
|
|
|
bool mEnableRecastMeshFileNameRevision = false;
|
|
|
|
bool mEnableNavMeshFileNameRevision = false;
|
|
|
|
float mCellHeight = 0;
|
|
|
|
float mCellSize = 0;
|
|
|
|
float mDetailSampleDist = 0;
|
|
|
|
float mDetailSampleMaxError = 0;
|
|
|
|
float mMaxClimb = 0;
|
|
|
|
float mMaxSimplificationError = 0;
|
|
|
|
float mMaxSlope = 0;
|
|
|
|
float mRecastScaleFactor = 0;
|
|
|
|
float mSwimHeightScale = 0;
|
|
|
|
int mBorderSize = 0;
|
|
|
|
int mMaxEdgeLen = 0;
|
|
|
|
int mMaxNavMeshQueryNodes = 0;
|
|
|
|
int mMaxPolys = 0;
|
2019-02-21 22:22:10 +00:00
|
|
|
int mMaxTilesNumber = 0;
|
2019-02-16 12:39:06 +00:00
|
|
|
int mMaxVertsPerPoly = 0;
|
|
|
|
int mRegionMergeSize = 0;
|
|
|
|
int mRegionMinSize = 0;
|
|
|
|
int mTileSize = 0;
|
|
|
|
std::size_t mAsyncNavMeshUpdaterThreads = 0;
|
|
|
|
std::size_t mMaxNavMeshTilesCacheSize = 0;
|
|
|
|
std::size_t mMaxPolygonPathSize = 0;
|
|
|
|
std::size_t mMaxSmoothPathSize = 0;
|
|
|
|
std::size_t mTrianglesPerChunk = 0;
|
2018-04-01 15:09:43 +00:00
|
|
|
std::string mRecastMeshPathPrefix;
|
|
|
|
std::string mNavMeshPathPrefix;
|
2018-03-13 22:49:08 +00:00
|
|
|
};
|
2019-02-16 11:41:11 +00:00
|
|
|
|
2019-02-16 12:50:58 +00:00
|
|
|
boost::optional<Settings> makeSettingsFromSettingsManager();
|
2018-03-13 22:49:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|