| | | 1 | | //======================================================================= |
| | | 2 | | // NavigationTransitionEdgeEvaluator.cs |
| | | 3 | | //======================================================================= |
| | | 4 | | // MIT License, Copyright (c) 2024-present David Oravsky (mrdav30) |
| | | 5 | | // See LICENSE file in the project root for full license information. |
| | | 6 | | //======================================================================= |
| | | 7 | | |
| | | 8 | | using FixedMathSharp; |
| | | 9 | | using GridForge.Grids; |
| | | 10 | | using GridForge.Grids.Topology; |
| | | 11 | | using NavigationTransitionEdgeStatus = Trailblazer.Pathing.NavigationTraversalEvaluationStatus; |
| | | 12 | | |
| | | 13 | | namespace Trailblazer.Pathing; |
| | | 14 | | |
| | | 15 | | /// <summary>Preserves the exact cost and action endpoints selected for a transition.</summary> |
| | | 16 | | internal readonly struct NavigationTransitionEdgeEvidence |
| | | 17 | | { |
| | | 18 | | internal NavigationTransitionEdgeEvidence( |
| | | 19 | | Fixed64 cost, |
| | | 20 | | Vector3d sourceAction, |
| | | 21 | | Vector3d destinationAction) |
| | | 22 | | { |
| | | 23 | | Cost = cost; |
| | | 24 | | SourceAction = sourceAction; |
| | | 25 | | DestinationAction = destinationAction; |
| | | 26 | | } |
| | | 27 | | |
| | | 28 | | internal Fixed64 Cost { get; } |
| | | 29 | | |
| | | 30 | | internal Vector3d SourceAction { get; } |
| | | 31 | | |
| | | 32 | | internal Vector3d DestinationAction { get; } |
| | | 33 | | } |
| | | 34 | | |
| | | 35 | | /// <summary>Evaluates authored transition action legs and costs without endpoint travel.</summary> |
| | | 36 | | internal readonly struct NavigationTransitionEdgeEvaluator |
| | | 37 | | { |
| | | 38 | | private readonly NavigationWorldGraph _graph; |
| | | 39 | | private readonly NavigationAgentProfile _profile; |
| | | 40 | | private readonly NavigationAreaPolicy _areaPolicy; |
| | | 41 | | private readonly GridWorld _world; |
| | | 42 | | private readonly NavigationRayWorkspace _workspace; |
| | | 43 | | |
| | | 44 | | internal NavigationTransitionEdgeEvaluator( |
| | | 45 | | GridWorld world, |
| | | 46 | | NavigationWorldGraph graph, |
| | | 47 | | NavigationAgentProfile profile, |
| | | 48 | | NavigationAreaPolicy areaPolicy, |
| | | 49 | | NavigationRayWorkspace workspace) |
| | | 50 | | { |
| | 248 | 51 | | _graph = graph; |
| | 248 | 52 | | _profile = profile; |
| | 248 | 53 | | _areaPolicy = areaPolicy; |
| | 248 | 54 | | _world = world; |
| | 248 | 55 | | _workspace = workspace; |
| | 248 | 56 | | } |
| | | 57 | | |
| | | 58 | | internal NavigationTransitionEdgeStatus EvaluateDefinition( |
| | | 59 | | NavigationMediumStateRef source, |
| | | 60 | | NavigationPublishedTransition transition, |
| | | 61 | | NavigationWorkMeter meter, |
| | | 62 | | NavigationDependencyWorkspace dependencies, |
| | | 63 | | out NavigationMediumStateRef target, |
| | | 64 | | out NavigationTransitionEdgeEvidence evidence) |
| | | 65 | | { |
| | 118 | 66 | | target = default; |
| | 118 | 67 | | evidence = default; |
| | 118 | 68 | | TraversalTransitionDefinition definition = transition.Definition; |
| | 118 | 69 | | bool found = _graph.TryGetNodeAddress( |
| | 118 | 70 | | source.Node, |
| | 118 | 71 | | out NavigationCellAddress sourceAddress); |
| | | 72 | | System.Diagnostics.Debug.Assert(found, |
| | | 73 | | "Transition candidates are evaluated only from published graph nodes."); |
| | 118 | 74 | | if (!sourceAddress.Equals(transition.SourceAddress) |
| | 118 | 75 | | || source.Medium != definition.SourceMedium) |
| | | 76 | | { |
| | 2 | 77 | | return NavigationTransitionEdgeStatus.Stale; |
| | | 78 | | } |
| | 116 | 79 | | if (!_graph.TryGetNodeRef( |
| | 116 | 80 | | definition.Destination, |
| | 116 | 81 | | out NavigationNodeRef targetNode)) |
| | | 82 | | { |
| | 1 | 83 | | return NavigationTransitionEdgeStatus.Impassable; |
| | | 84 | | } |
| | 115 | 85 | | target = new NavigationMediumStateRef( |
| | 115 | 86 | | targetNode, |
| | 115 | 87 | | definition.DestinationMedium); |
| | 115 | 88 | | if (!dependencies.TryRecordPage( |
| | 115 | 89 | | sourceAddress.MapId, |
| | 115 | 90 | | source.Node.CellSlot / NavigationSemanticPage.SlotCount) |
| | 115 | 91 | | || !dependencies.TryRecordPage( |
| | 115 | 92 | | definition.Destination.MapId, |
| | 115 | 93 | | target.Node.CellSlot / NavigationSemanticPage.SlotCount)) |
| | | 94 | | { |
| | 2 | 95 | | return NavigationTransitionEdgeStatus.CapacityExceeded; |
| | | 96 | | } |
| | 113 | 97 | | if ((_profile.Capabilities & definition.RequiredCapabilities) |
| | 113 | 98 | | != definition.RequiredCapabilities) |
| | | 99 | | { |
| | 1 | 100 | | return NavigationTransitionEdgeStatus.Impassable; |
| | | 101 | | } |
| | | 102 | | |
| | 112 | 103 | | var sourceNodes = new TraversalEvaluator( |
| | 112 | 104 | | _graph, |
| | 112 | 105 | | _profile, |
| | 112 | 106 | | _areaPolicy, |
| | 112 | 107 | | source.Medium); |
| | 112 | 108 | | var targetNodes = new TraversalEvaluator( |
| | 112 | 109 | | _graph, |
| | 112 | 110 | | _profile, |
| | 112 | 111 | | _areaPolicy, |
| | 112 | 112 | | target.Medium); |
| | 112 | 113 | | if (!sourceNodes.TryGetPassableNode( |
| | 112 | 114 | | source.Node, |
| | 112 | 115 | | out NavigationNodeState sourceState, |
| | 112 | 116 | | out _) |
| | 112 | 117 | | || !targetNodes.TryGetPassableNode( |
| | 112 | 118 | | target.Node, |
| | 112 | 119 | | out NavigationNodeState targetState, |
| | 112 | 120 | | out NavigationAreaRule targetRule)) |
| | | 121 | | { |
| | 4 | 122 | | return NavigationTransitionEdgeStatus.Impassable; |
| | | 123 | | } |
| | 108 | 124 | | if (!TryGetAnchors( |
| | 108 | 125 | | sourceState, |
| | 108 | 126 | | source.Medium, |
| | 108 | 127 | | targetState, |
| | 108 | 128 | | target.Medium, |
| | 108 | 129 | | out Vector3d sourceAnchor, |
| | 108 | 130 | | out Vector3d targetAnchor)) |
| | | 131 | | { |
| | 2 | 132 | | return NavigationTransitionEdgeStatus.Impassable; |
| | | 133 | | } |
| | | 134 | | |
| | 106 | 135 | | Vector3d sourceAction = definition.HasSourcePointOverride |
| | 106 | 136 | | ? definition.SourcePointOverride |
| | 106 | 137 | | : sourceAnchor; |
| | 106 | 138 | | Vector3d targetAction = definition.HasDestinationPointOverride |
| | 106 | 139 | | ? definition.DestinationPointOverride |
| | 106 | 140 | | : targetAnchor; |
| | 106 | 141 | | NavigationTransitionEdgeStatus sourceLeg = EvaluateLeg( |
| | 106 | 142 | | source, |
| | 106 | 143 | | sourceAnchor, |
| | 106 | 144 | | sourceAction, |
| | 106 | 145 | | meter, |
| | 106 | 146 | | dependencies); |
| | 106 | 147 | | if (sourceLeg != NavigationTransitionEdgeStatus.Passable) |
| | 1 | 148 | | return sourceLeg; |
| | 105 | 149 | | NavigationTransitionEdgeStatus targetLeg = EvaluateLeg( |
| | 105 | 150 | | target, |
| | 105 | 151 | | targetAction, |
| | 105 | 152 | | targetAnchor, |
| | 105 | 153 | | meter, |
| | 105 | 154 | | dependencies); |
| | 105 | 155 | | if (targetLeg != NavigationTransitionEdgeStatus.Passable) |
| | 7 | 156 | | return targetLeg; |
| | | 157 | | |
| | 98 | 158 | | if (!TryGetCost( |
| | 98 | 159 | | sourceAnchor, |
| | 98 | 160 | | sourceAction, |
| | 98 | 161 | | definition.ActionCost, |
| | 98 | 162 | | targetAction, |
| | 98 | 163 | | targetAnchor, |
| | 98 | 164 | | targetState.Cell.EnterCost, |
| | 98 | 165 | | targetRule.AdditionalEnterCost, |
| | 98 | 166 | | out Fixed64 total)) |
| | | 167 | | { |
| | 4 | 168 | | return NavigationTransitionEdgeStatus.CostOverflow; |
| | | 169 | | } |
| | | 170 | | |
| | 94 | 171 | | evidence = new NavigationTransitionEdgeEvidence( |
| | 94 | 172 | | total, |
| | 94 | 173 | | sourceAction, |
| | 94 | 174 | | targetAction); |
| | 94 | 175 | | return NavigationTransitionEdgeStatus.Passable; |
| | | 176 | | } |
| | | 177 | | |
| | | 178 | | internal NavigationTransitionEdgeStatus EvaluateRule( |
| | | 179 | | NavigationMediumStateRef source, |
| | | 180 | | NavigationMediumStateRef target, |
| | | 181 | | TraversalTransitionRule rule, |
| | | 182 | | NavigationWorkMeter meter, |
| | | 183 | | NavigationDependencyWorkspace dependencies, |
| | | 184 | | out NavigationTransitionEdgeEvidence evidence) |
| | | 185 | | { |
| | 131 | 186 | | evidence = default; |
| | 131 | 187 | | bool foundSource = _graph.TryGetNodeAddress( |
| | 131 | 188 | | source.Node, |
| | 131 | 189 | | out NavigationCellAddress address); |
| | 131 | 190 | | bool foundTarget = _graph.TryGetNodeAddress( |
| | 131 | 191 | | target.Node, |
| | 131 | 192 | | out NavigationCellAddress targetAddress); |
| | | 193 | | System.Diagnostics.Debug.Assert(foundSource && foundTarget, |
| | | 194 | | "Transition rule pairs contain only published graph nodes."); |
| | 131 | 195 | | if ((rule.Scope == TraversalTransitionRuleScope.SameCell |
| | 131 | 196 | | && !source.Node.Equals(target.Node)) |
| | 131 | 197 | | || source.Medium != rule.SourceMedium |
| | 131 | 198 | | || target.Medium != rule.DestinationMedium |
| | 131 | 199 | | || (_profile.Capabilities & rule.RequiredCapabilities) |
| | 131 | 200 | | != rule.RequiredCapabilities) |
| | | 201 | | { |
| | 14 | 202 | | return NavigationTransitionEdgeStatus.Impassable; |
| | | 203 | | } |
| | 117 | 204 | | if (!dependencies.TryRecordPage( |
| | 117 | 205 | | address.MapId, |
| | 117 | 206 | | source.Node.CellSlot / NavigationSemanticPage.SlotCount) |
| | 117 | 207 | | || !dependencies.TryRecordPage( |
| | 117 | 208 | | targetAddress.MapId, |
| | 117 | 209 | | target.Node.CellSlot / NavigationSemanticPage.SlotCount)) |
| | | 210 | | { |
| | 1 | 211 | | return NavigationTransitionEdgeStatus.CapacityExceeded; |
| | | 212 | | } |
| | | 213 | | |
| | 116 | 214 | | var sourceNodes = new TraversalEvaluator( |
| | 116 | 215 | | _graph, |
| | 116 | 216 | | _profile, |
| | 116 | 217 | | _areaPolicy, |
| | 116 | 218 | | source.Medium); |
| | 116 | 219 | | var targetNodes = new TraversalEvaluator( |
| | 116 | 220 | | _graph, |
| | 116 | 221 | | _profile, |
| | 116 | 222 | | _areaPolicy, |
| | 116 | 223 | | target.Medium); |
| | 116 | 224 | | if (!sourceNodes.TryGetPassableNodeState( |
| | 116 | 225 | | source.Node, |
| | 116 | 226 | | out NavigationNodeState sourceState) |
| | 116 | 227 | | || !targetNodes.TryGetPassableNode( |
| | 116 | 228 | | target.Node, |
| | 116 | 229 | | out NavigationNodeState targetState, |
| | 116 | 230 | | out NavigationAreaRule targetRule)) |
| | | 231 | | { |
| | 26 | 232 | | return NavigationTransitionEdgeStatus.Impassable; |
| | | 233 | | } |
| | 90 | 234 | | if (!TryGetAnchors( |
| | 90 | 235 | | sourceState, |
| | 90 | 236 | | source.Medium, |
| | 90 | 237 | | targetState, |
| | 90 | 238 | | target.Medium, |
| | 90 | 239 | | out Vector3d sourceAnchor, |
| | 90 | 240 | | out Vector3d targetAnchor)) |
| | | 241 | | { |
| | 2 | 242 | | return NavigationTransitionEdgeStatus.Impassable; |
| | | 243 | | } |
| | | 244 | | |
| | 88 | 245 | | Vector3d sourceAction = sourceAnchor; |
| | 88 | 246 | | Vector3d targetAction = targetAnchor; |
| | 88 | 247 | | GridNavigationPortal portal = default; |
| | 88 | 248 | | if (rule.Scope == TraversalTransitionRuleScope.PositiveFaceContact) |
| | | 249 | | { |
| | 52 | 250 | | bool foundSourcePrism = _graph.TryGetSeamPrism( |
| | 52 | 251 | | address, |
| | 52 | 252 | | out GridCellPrism sourcePrism); |
| | 52 | 253 | | bool foundTargetPrism = _graph.TryGetSeamPrism( |
| | 52 | 254 | | targetAddress, |
| | 52 | 255 | | out GridCellPrism targetPrism); |
| | | 256 | | System.Diagnostics.Debug.Assert(foundSourcePrism && foundTargetPrism, |
| | | 257 | | "Published transition endpoints belong to their bound grid prisms."); |
| | 52 | 258 | | if (!GridCellGeometry.TryCreateNavigationPortal( |
| | 52 | 259 | | sourcePrism, |
| | 52 | 260 | | targetPrism, |
| | 52 | 261 | | out portal)) |
| | | 262 | | { |
| | 24 | 263 | | return NavigationTransitionEdgeStatus.Impassable; |
| | | 264 | | } |
| | 28 | 265 | | if (!GridCellGeometry.TryGetNavigationPortalTraversalParameters( |
| | 28 | 266 | | sourcePrism, |
| | 28 | 267 | | targetPrism, |
| | 28 | 268 | | portal, |
| | 28 | 269 | | sourceAnchor, |
| | 28 | 270 | | targetAnchor, |
| | 28 | 271 | | _profile.Shape.Radius, |
| | 28 | 272 | | _profile.Shape.Height, |
| | 28 | 273 | | out Fixed64 sourceParameter, |
| | 28 | 274 | | out Fixed64 targetParameter)) |
| | | 275 | | { |
| | 1 | 276 | | return NavigationTransitionEdgeStatus.Impassable; |
| | | 277 | | } |
| | 27 | 278 | | sourceAction = Vector3d.Lerp(sourceAnchor, targetAnchor, sourceParameter); |
| | 27 | 279 | | targetAction = Vector3d.Lerp(sourceAnchor, targetAnchor, targetParameter); |
| | | 280 | | } |
| | 63 | 281 | | NavigationTransitionEdgeStatus sourceLeg = EvaluateLeg( |
| | 63 | 282 | | source, |
| | 63 | 283 | | sourceAnchor, |
| | 63 | 284 | | sourceAction, |
| | 63 | 285 | | meter, |
| | 63 | 286 | | dependencies, |
| | 63 | 287 | | outgoingPortal: portal); |
| | 63 | 288 | | if (sourceLeg != NavigationTransitionEdgeStatus.Passable) |
| | 1 | 289 | | return sourceLeg; |
| | 62 | 290 | | NavigationTransitionEdgeStatus targetLeg = EvaluateLeg( |
| | 62 | 291 | | target, |
| | 62 | 292 | | targetAction, |
| | 62 | 293 | | targetAnchor, |
| | 62 | 294 | | meter, |
| | 62 | 295 | | dependencies, |
| | 62 | 296 | | incomingPortal: portal); |
| | 62 | 297 | | if (targetLeg != NavigationTransitionEdgeStatus.Passable) |
| | 3 | 298 | | return targetLeg; |
| | 59 | 299 | | if (!TryGetCost( |
| | 59 | 300 | | sourceAnchor, |
| | 59 | 301 | | sourceAction, |
| | 59 | 302 | | rule.ActionCost, |
| | 59 | 303 | | targetAction, |
| | 59 | 304 | | targetAnchor, |
| | 59 | 305 | | targetState.Cell.EnterCost, |
| | 59 | 306 | | targetRule.AdditionalEnterCost, |
| | 59 | 307 | | out Fixed64 total)) |
| | | 308 | | { |
| | 5 | 309 | | return NavigationTransitionEdgeStatus.CostOverflow; |
| | | 310 | | } |
| | | 311 | | |
| | 54 | 312 | | evidence = new NavigationTransitionEdgeEvidence( |
| | 54 | 313 | | total, |
| | 54 | 314 | | sourceAction, |
| | 54 | 315 | | targetAction); |
| | 54 | 316 | | return NavigationTransitionEdgeStatus.Passable; |
| | | 317 | | } |
| | | 318 | | |
| | | 319 | | internal static bool TryGetCost( |
| | | 320 | | Vector3d sourceAnchor, |
| | | 321 | | Vector3d sourceAction, |
| | | 322 | | Fixed64 actionCost, |
| | | 323 | | Vector3d targetAction, |
| | | 324 | | Vector3d targetAnchor, |
| | | 325 | | Fixed64 targetEnterCost, |
| | | 326 | | Fixed64 additionalEnterCost, |
| | 164 | 327 | | out Fixed64 total) => NavigationDistanceMath.TryCeiling( |
| | 164 | 328 | | sourceAnchor, |
| | 164 | 329 | | sourceAction, |
| | 164 | 330 | | out total) |
| | 164 | 331 | | && Fixed64.TryAdd(total, actionCost, out total) |
| | 164 | 332 | | && NavigationDistanceMath.TryCeiling( |
| | 164 | 333 | | targetAction, |
| | 164 | 334 | | targetAnchor, |
| | 164 | 335 | | out Fixed64 targetDistance) |
| | 164 | 336 | | && Fixed64.TryAdd(total, targetDistance, out total) |
| | 164 | 337 | | && Fixed64.TryAdd(total, targetEnterCost, out total) |
| | 164 | 338 | | && Fixed64.TryAdd(total, additionalEnterCost, out total); |
| | | 339 | | |
| | | 340 | | private bool TryGetAnchors( |
| | | 341 | | NavigationNodeState source, |
| | | 342 | | TraversalMedium sourceMedium, |
| | | 343 | | NavigationNodeState target, |
| | | 344 | | TraversalMedium targetMedium, |
| | | 345 | | out Vector3d sourceAnchor, |
| | | 346 | | out Vector3d targetAnchor) |
| | | 347 | | { |
| | 198 | 348 | | if (!TryGetAnchor(source, sourceMedium, out sourceAnchor)) |
| | | 349 | | { |
| | 2 | 350 | | targetAnchor = default; |
| | 2 | 351 | | return false; |
| | | 352 | | } |
| | 196 | 353 | | return TryGetAnchor(target, targetMedium, out targetAnchor); |
| | | 354 | | } |
| | | 355 | | |
| | | 356 | | private bool TryGetAnchor( |
| | | 357 | | NavigationNodeState state, |
| | | 358 | | TraversalMedium medium, |
| | | 359 | | out Vector3d anchor) |
| | | 360 | | { |
| | 394 | 361 | | if (medium == TraversalMedium.Solid) |
| | | 362 | | { |
| | 148 | 363 | | anchor = state.FootAnchor; |
| | 148 | 364 | | return true; |
| | | 365 | | } |
| | 246 | 366 | | return state.TryGetCenteredVolumeFootAnchor(_profile.Shape.Height, out anchor); |
| | | 367 | | } |
| | | 368 | | |
| | | 369 | | private NavigationTransitionEdgeStatus EvaluateLeg( |
| | | 370 | | NavigationMediumStateRef state, |
| | | 371 | | Vector3d start, |
| | | 372 | | Vector3d end, |
| | | 373 | | NavigationWorkMeter meter, |
| | | 374 | | NavigationDependencyWorkspace dependencies, |
| | | 375 | | GridNavigationPortal incomingPortal = default, |
| | | 376 | | GridNavigationPortal outgoingPortal = default) |
| | | 377 | | { |
| | 336 | 378 | | if (start == end && state.Medium == TraversalMedium.Solid) |
| | 137 | 379 | | return NavigationTransitionEdgeStatus.Passable; |
| | 199 | 380 | | if (state.Medium == TraversalMedium.Solid) |
| | | 381 | | { |
| | 8 | 382 | | _graph.TryGetNodeAddress(state.Node, out NavigationCellAddress address); |
| | 8 | 383 | | _graph.TryGetSeamPrism(address, out GridCellPrism prism); |
| | | 384 | | System.Diagnostics.Debug.Assert( |
| | | 385 | | address.MapId != null && prism.FootprintVertexCount > 0); |
| | 8 | 386 | | bool valid = GridCellGeometry.IsNavigationBodySegmentValid( |
| | 8 | 387 | | prism, |
| | 8 | 388 | | start, |
| | 8 | 389 | | end, |
| | 8 | 390 | | _profile.Shape.Radius, |
| | 8 | 391 | | _profile.Shape.Height, |
| | 8 | 392 | | incomingPortal, |
| | 8 | 393 | | outgoingPortal, |
| | 8 | 394 | | GridNavigationBodySegmentEndpointAllowance.None); |
| | | 395 | | System.Diagnostics.Debug.Assert(valid, |
| | | 396 | | "Published transition actions and computed portals are valid in-cell segments."); |
| | 8 | 397 | | return NavigationTransitionEdgeStatus.Passable; |
| | | 398 | | } |
| | | 399 | | |
| | 191 | 400 | | if ((incomingPortal.IsValid || outgoingPortal.IsValid) |
| | 191 | 401 | | && _graph.TryGetNodeAddress( |
| | 191 | 402 | | state.Node, |
| | 191 | 403 | | out NavigationCellAddress volumeAddress) |
| | 191 | 404 | | && _graph.TryGetSeamPrism(volumeAddress, out GridCellPrism volumePrism) |
| | 191 | 405 | | && GridCellGeometry.IsNavigationBodySegmentValid( |
| | 191 | 406 | | volumePrism, |
| | 191 | 407 | | start, |
| | 191 | 408 | | end, |
| | 191 | 409 | | _profile.Shape.Radius, |
| | 191 | 410 | | _profile.Shape.Height, |
| | 191 | 411 | | incomingPortal, |
| | 191 | 412 | | outgoingPortal, |
| | 191 | 413 | | GridNavigationBodySegmentEndpointAllowance.None)) |
| | | 414 | | { |
| | 54 | 415 | | return NavigationTransitionEdgeStatus.Passable; |
| | | 416 | | } |
| | | 417 | | |
| | 137 | 418 | | var volume = new NavigationVolumeAnchorEvaluator( |
| | 137 | 419 | | _world, |
| | 137 | 420 | | _graph, |
| | 137 | 421 | | _profile, |
| | 137 | 422 | | _areaPolicy, |
| | 137 | 423 | | _workspace); |
| | 137 | 424 | | NavigationVolumeAnchorStatus status = volume.EvaluateSegment( |
| | 137 | 425 | | state, |
| | 137 | 426 | | state, |
| | 137 | 427 | | start, |
| | 137 | 428 | | end, |
| | 137 | 429 | | meter, |
| | 137 | 430 | | dependencies); |
| | 137 | 431 | | return status switch |
| | 137 | 432 | | { |
| | 137 | 433 | | NavigationVolumeAnchorStatus.Success => |
| | 125 | 434 | | NavigationTransitionEdgeStatus.Passable, |
| | 137 | 435 | | NavigationVolumeAnchorStatus.BudgetExceeded => |
| | 5 | 436 | | NavigationTransitionEdgeStatus.BudgetExceeded, |
| | 137 | 437 | | NavigationVolumeAnchorStatus.CostOverflow => |
| | 1 | 438 | | NavigationTransitionEdgeStatus.CostOverflow, |
| | 137 | 439 | | NavigationVolumeAnchorStatus.CapacityExceeded => |
| | 3 | 440 | | NavigationTransitionEdgeStatus.CapacityExceeded, |
| | 137 | 441 | | NavigationVolumeAnchorStatus.Stale => |
| | 2 | 442 | | NavigationTransitionEdgeStatus.Stale, |
| | 1 | 443 | | _ => NavigationTransitionEdgeStatus.Impassable |
| | 137 | 444 | | }; |
| | | 445 | | } |
| | | 446 | | } |