| 116 | {} |
| 117 | |
| 118 | NavMesh::~NavMesh() |
| 119 | { |
| 120 | dtFreeTileCache(_tileCache); |
| 121 | dtFreeCrowd(_crowed); |
| 122 | dtFreeNavMesh(_navMesh); |
| 123 | dtFreeNavMeshQuery(_navMeshQuery); |
| 124 | AX_SAFE_DELETE(_allocator); |
| 125 | AX_SAFE_DELETE(_compressor); |
| 126 | AX_SAFE_DELETE(_meshProcess); |
| 127 | AX_SAFE_DELETE(_geomData); |
| 128 | |
| 129 | for (auto&& iter : _agentList) |
| 130 | { |
| 131 | AX_SAFE_RELEASE(iter); |
| 132 | } |
| 133 | _agentList.clear(); |
| 134 | |
| 135 | for (auto&& iter : _obstacleList) |
| 136 | { |
| 137 | AX_SAFE_RELEASE(iter); |
| 138 | } |
| 139 | _obstacleList.clear(); |
| 140 | } |
| 141 | |
| 142 | bool NavMesh::initWithFilePath(std::string_view navFilePath, std::string_view geomFilePath) |
| 143 | { |
nothing calls this directly
no test coverage detected