< Summary

Information
Class: Trailblazer.Pathing.PendingExternalGridChange
Assembly: Trailblazer
File(s): /home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/GridBridge/PendingExternalGridChange.cs
Line coverage
100%
Covered lines: 14
Uncovered lines: 0
Coverable lines: 14
Total lines: 46
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%
ToRebuildRequest(...)100%11100%

File(s)

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

#LineLine coverage
 1using FixedMathSharp;
 2
 3namespace Trailblazer.Pathing;
 4
 5internal readonly struct PendingExternalGridChange
 6{
 7    public PendingExternalGridChange(
 8        int gridSpawnToken,
 9        uint gridVersion,
 10        Vector3d boundsMin,
 11        Vector3d boundsMax,
 12        bool requiresLiveGridTouchSelection,
 13        bool requiresAuthoredCellBoundsSelection)
 14    {
 202115        GridSpawnToken = gridSpawnToken;
 202116        GridVersion = gridVersion;
 202117        BoundsMin = boundsMin;
 202118        BoundsMax = boundsMax;
 202119        RequiresLiveGridTouchSelection = requiresLiveGridTouchSelection;
 202120        RequiresAuthoredCellBoundsSelection = requiresAuthoredCellBoundsSelection;
 202121    }
 22
 23    public int GridSpawnToken { get; }
 24
 25    public uint GridVersion { get; }
 26
 27    public Vector3d BoundsMin { get; }
 28
 29    public Vector3d BoundsMax { get; }
 30
 31    public bool RequiresLiveGridTouchSelection { get; }
 32
 33    public bool RequiresAuthoredCellBoundsSelection { get; }
 34
 95435    public bool HasSelectionCriteria => RequiresLiveGridTouchSelection || RequiresAuthoredCellBoundsSelection;
 36
 37    public ExternalGridChartRebuildRequest ToRebuildRequest(ushort gridIndex)
 38    {
 47639        return new ExternalGridChartRebuildRequest(
 47640            gridIndex,
 47641            BoundsMin,
 47642            BoundsMax,
 47643            RequiresLiveGridTouchSelection,
 47644            RequiresAuthoredCellBoundsSelection);
 45    }
 46}