2
0

RecastNavigationMeshConfig.cpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <Misc/RecastNavigationMeshConfig.h>
  9. namespace RecastNavigation
  10. {
  11. void RecastNavigationMeshConfig::Reflect(AZ::ReflectContext* context)
  12. {
  13. if (auto serialize = azrtti_cast<AZ::SerializeContext*>(context))
  14. {
  15. using Self = RecastNavigationMeshConfig;
  16. serialize->Class<RecastNavigationMeshConfig>()
  17. ->Field("Agent Height", &Self::m_agentHeight)
  18. ->Field("Agent Max Climb", &Self::m_agentMaxClimb)
  19. ->Field("Agent Max Slope", &Self::m_agentMaxSlope)
  20. ->Field("Agent Radius", &Self::m_agentRadius)
  21. ->Field("Voxel Height", &Self::m_cellHeight)
  22. ->Field("Voxel Size", &Self::m_cellSize)
  23. ->Field("Detail Sample Distance", &Self::m_detailSampleDist)
  24. ->Field("Detail Sample Max Error", &Self::m_detailSampleMaxError)
  25. ->Field("Edge Max Error", &Self::m_edgeMaxError)
  26. ->Field("Edge Max Length", &Self::m_edgeMaxLen)
  27. ->Field("Filter Ledge Spans", &Self::m_filterLedgeSpans)
  28. ->Field("Filter Low Hanging Obstacles", &Self::m_filterLowHangingObstacles)
  29. ->Field("Filter Walkable Low Height Spans", &Self::m_filterWalkableLowHeightSpans)
  30. ->Field("Max Vertices Per Poly", &Self::m_maxVerticesPerPoly)
  31. ->Field("Region Merge Size", &Self::m_regionMergeSize)
  32. ->Field("Region Min Size", &Self::m_regionMinSize)
  33. ->Field("Tile Size", &Self::m_tileSize)
  34. ->Field("Border Size", &Self::m_borderSize)
  35. ->Field("Debug Draw", &Self::m_enableDebugDraw)
  36. ->Field("Editor Preview", &Self::m_enableEditorPreview)
  37. ->Version(1)
  38. ;
  39. }
  40. }
  41. } // namespace RecastNavigation