1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

Add default initializators for settings fields

This commit is contained in:
elsid 2019-02-16 15:39:06 +03:00
parent 16675fd254
commit 34c594f01e
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

View File

@ -7,32 +7,32 @@ namespace DetourNavigator
{ {
struct Settings struct Settings
{ {
bool mEnableWriteRecastMeshToFile; bool mEnableWriteRecastMeshToFile = false;
bool mEnableWriteNavMeshToFile; bool mEnableWriteNavMeshToFile = false;
bool mEnableRecastMeshFileNameRevision; bool mEnableRecastMeshFileNameRevision = false;
bool mEnableNavMeshFileNameRevision; bool mEnableNavMeshFileNameRevision = false;
float mCellHeight; float mCellHeight = 0;
float mCellSize; float mCellSize = 0;
float mDetailSampleDist; float mDetailSampleDist = 0;
float mDetailSampleMaxError; float mDetailSampleMaxError = 0;
float mMaxClimb; float mMaxClimb = 0;
float mMaxSimplificationError; float mMaxSimplificationError = 0;
float mMaxSlope; float mMaxSlope = 0;
float mRecastScaleFactor; float mRecastScaleFactor = 0;
float mSwimHeightScale; float mSwimHeightScale = 0;
int mBorderSize; int mBorderSize = 0;
int mMaxEdgeLen; int mMaxEdgeLen = 0;
int mMaxNavMeshQueryNodes; int mMaxNavMeshQueryNodes = 0;
int mMaxPolys; int mMaxPolys = 0;
int mMaxVertsPerPoly; int mMaxVertsPerPoly = 0;
int mRegionMergeSize; int mRegionMergeSize = 0;
int mRegionMinSize; int mRegionMinSize = 0;
int mTileSize; int mTileSize = 0;
std::size_t mAsyncNavMeshUpdaterThreads; std::size_t mAsyncNavMeshUpdaterThreads = 0;
std::size_t mMaxNavMeshTilesCacheSize; std::size_t mMaxNavMeshTilesCacheSize = 0;
std::size_t mMaxPolygonPathSize; std::size_t mMaxPolygonPathSize = 0;
std::size_t mMaxSmoothPathSize; std::size_t mMaxSmoothPathSize = 0;
std::size_t mTrianglesPerChunk; std::size_t mTrianglesPerChunk = 0;
std::string mRecastMeshPathPrefix; std::string mRecastMeshPathPrefix;
std::string mNavMeshPathPrefix; std::string mNavMeshPathPrefix;
}; };