< Summary

Information
Class: Trailblazer.Pathing.ExternalGridChartRebuildRequest
Assembly: Trailblazer
File(s): /home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/GridBridge/ExternalGridChartRebuildRequest.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 35
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

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

File(s)

/home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/GridBridge/ExternalGridChartRebuildRequest.cs

#LineLine coverage
 1using FixedMathSharp;
 2
 3namespace Trailblazer.Pathing;
 4
 5/// <summary>
 6/// Describes one coalesced external-grid rebuild selection request for <see cref="PathManager"/>.
 7/// </summary>
 8internal readonly struct ExternalGridChartRebuildRequest
 9{
 10    internal ExternalGridChartRebuildRequest(
 11        ushort gridIndex,
 12        Vector3d boundsMin,
 13        Vector3d boundsMax,
 14        bool includeLiveGridTouches,
 15        bool includeAuthoredCellsInBounds)
 16    {
 47817        GridIndex = gridIndex;
 47818        BoundsMin = boundsMin;
 47819        BoundsMax = boundsMax;
 47820        IncludeLiveGridTouches = includeLiveGridTouches;
 47821        IncludeAuthoredCellsInBounds = includeAuthoredCellsInBounds;
 47822    }
 23
 24    public ushort GridIndex { get; }
 25
 26    public Vector3d BoundsMin { get; }
 27
 28    public Vector3d BoundsMax { get; }
 29
 30    public bool IncludeLiveGridTouches { get; }
 31
 32    public bool IncludeAuthoredCellsInBounds { get; }
 33
 46534    public bool HasSelectionCriteria => IncludeLiveGridTouches || IncludeAuthoredCellsInBounds;
 35}