< Summary

Information
Class: Trailblazer.Pathing.NavigationGuideStep
Assembly: Trailblazer
File(s): /home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/Search/Guide/NavigationGuideStep.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 43
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/Guide/NavigationGuideStep.cs

#LineLine coverage
 1//=======================================================================
 2// NavigationGuideStep.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 medium-specific movement target or semantic action.</summary>
 13public readonly struct NavigationGuideStep
 14{
 15    internal NavigationGuideStep(
 16        NavigationCellAddress address,
 17        Vector3d position,
 18        TraversalMedium medium,
 19        NavigationTransitionInstruction transition,
 20        bool hasTransition)
 21    {
 353522        Address = address;
 353523        Position = position;
 353524        Medium = medium;
 353525        Transition = transition;
 353526        HasTransition = hasTransition;
 353527    }
 28
 29    /// <summary>Gets the stable address selected for this movement or action step.</summary>
 30    public NavigationCellAddress Address { get; }
 31
 32    /// <summary>Gets the exact world position selected for this step.</summary>
 33    public Vector3d Position { get; }
 34
 35    /// <summary>Gets the exact traversal medium before this step completes.</summary>
 36    public TraversalMedium Medium { get; }
 37
 38    /// <summary>Gets the semantic action when <see cref="HasTransition"/> is true.</summary>
 39    public NavigationTransitionInstruction Transition { get; }
 40
 41    /// <summary>Gets whether this step requires explicit semantic-action completion.</summary>
 42    public bool HasTransition { get; }
 43}