< Summary

Information
Class: Trailblazer.Pathing.NavigationFlowSample
Assembly: Trailblazer
File(s): /home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/Search/Flow/NavigationFlowSample.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/Flow/NavigationFlowSample.cs

#LineLine coverage
 1//=======================================================================
 2// NavigationFlowSample.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 sample or semantic action.</summary>
 13public readonly struct NavigationFlowSample
 14{
 15    internal NavigationFlowSample(
 16        Vector3d heading,
 17        Vector3d target,
 18        TraversalMedium medium,
 19        NavigationTransitionInstruction transition,
 20        bool hasTransition)
 21    {
 128422        Heading = heading;
 128423        Target = target;
 128424        Medium = medium;
 128425        Transition = transition;
 128426        HasTransition = hasTransition;
 128427    }
 28
 29    /// <summary>Gets the deterministic ordinary movement heading, or zero for a pending action.</summary>
 30    public Vector3d Heading { get; }
 31
 32    /// <summary>Gets the exact movement or action-approach target.</summary>
 33    public Vector3d Target { get; }
 34
 35    /// <summary>Gets the exact traversal medium before this sample 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 sample requires explicit semantic-action completion.</summary>
 42    public bool HasTransition { get; }
 43}