< Summary

Information
Class: Trailblazer.Pathing.NavigationFlowFieldNode
Assembly: Trailblazer
File(s): /home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/Search/Flow/NavigationFlowFieldNode.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 38
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/Search/Flow/NavigationFlowFieldNode.cs

#LineLine coverage
 1//=======================================================================
 2// NavigationFlowFieldNode.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
 8using FixedMathSharp;
 9
 10namespace Trailblazer.Pathing;
 11
 12/// <summary>Stores one stable node in a destination-centric flow field.</summary>
 13internal readonly struct NavigationFlowFieldNode
 14{
 15    internal NavigationFlowFieldNode(
 16        NavigationCellAddress address,
 17        TraversalMedium medium,
 18        Fixed64 integrationCost,
 19        NavigationSelectedEdgeRef selectedEdge,
 20        int transitionInstructionOrdinal)
 21    {
 319522        Address = address;
 319523        Medium = medium;
 319524        IntegrationCost = integrationCost;
 319525        SelectedEdge = selectedEdge;
 319526        TransitionInstructionOrdinal = transitionInstructionOrdinal;
 319527    }
 28
 29    internal NavigationCellAddress Address { get; }
 30
 31    internal TraversalMedium Medium { get; }
 32
 33    internal Fixed64 IntegrationCost { get; }
 34
 35    internal NavigationSelectedEdgeRef SelectedEdge { get; }
 36
 37    internal int TransitionInstructionOrdinal { get; }
 38}