2018-03-14 01:49:08 +03:00
|
|
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_SETTINGS_H
|
|
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_SETTINGS_H
|
|
|
|
|
2020-02-20 15:05:50 -08:00
|
|
|
#include <chrono>
|
2020-10-25 00:58:44 +02:00
|
|
|
#include <string>
|
2018-03-14 01:49:08 +03:00
|
|
|
|
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
2021-11-06 13:46:43 +01:00
|
|
|
struct RecastSettings
|
2018-03-14 01:49:08 +03:00
|
|
|
{
|
2019-02-16 15:39:06 +03:00
|
|
|
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 mMaxVertsPerPoly = 0;
|
2021-11-06 13:46:43 +01:00
|
|
|
int mRegionMergeArea = 0;
|
|
|
|
int mRegionMinArea = 0;
|
2019-02-16 15:39:06 +03:00
|
|
|
int mTileSize = 0;
|
2021-11-06 13:46:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct DetourSettings
|
|
|
|
{
|
|
|
|
int mMaxPolys = 0;
|
|
|
|
int mMaxNavMeshQueryNodes = 0;
|
|
|
|
std::size_t mMaxPolygonPathSize = 0;
|
|
|
|
std::size_t mMaxSmoothPathSize = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Settings
|
|
|
|
{
|
|
|
|
bool mEnableWriteRecastMeshToFile = false;
|
|
|
|
bool mEnableWriteNavMeshToFile = false;
|
|
|
|
bool mEnableRecastMeshFileNameRevision = false;
|
|
|
|
bool mEnableNavMeshFileNameRevision = false;
|
2021-07-09 22:51:42 +02:00
|
|
|
bool mEnableNavMeshDiskCache = false;
|
2021-11-06 13:46:43 +01:00
|
|
|
RecastSettings mRecast;
|
|
|
|
DetourSettings mDetour;
|
2021-05-05 19:23:07 +02:00
|
|
|
int mWaitUntilMinDistanceToPlayer = 0;
|
2021-11-06 13:46:43 +01:00
|
|
|
int mMaxTilesNumber = 0;
|
2019-02-16 15:39:06 +03:00
|
|
|
std::size_t mAsyncNavMeshUpdaterThreads = 0;
|
|
|
|
std::size_t mMaxNavMeshTilesCacheSize = 0;
|
2018-04-01 18:09:43 +03:00
|
|
|
std::string mRecastMeshPathPrefix;
|
|
|
|
std::string mNavMeshPathPrefix;
|
2020-02-20 15:05:50 -08:00
|
|
|
std::chrono::milliseconds mMinUpdateInterval;
|
2021-06-29 03:49:21 +02:00
|
|
|
std::int64_t mNavMeshVersion = 0;
|
2018-03-14 01:49:08 +03:00
|
|
|
};
|
2019-02-16 14:41:11 +03:00
|
|
|
|
2021-11-06 13:46:43 +01:00
|
|
|
RecastSettings makeRecastSettingsFromSettingsManager();
|
|
|
|
|
|
|
|
DetourSettings makeDetourSettingsFromSettingsManager();
|
|
|
|
|
2021-07-03 04:09:55 +02:00
|
|
|
Settings makeSettingsFromSettingsManager();
|
2018-03-14 01:49:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|