< Summary

Information
Class: Trailblazer.Pathing.NavigationChartCellUpdate
Assembly: Trailblazer
File(s): /home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/Chart/NavigationChartCellUpdate.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
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/Chart/NavigationChartCellUpdate.cs

#LineLine coverage
 1namespace Trailblazer.Pathing;
 2
 3/// <summary>
 4/// Describes one authored cell mutation to apply to a registered <see cref="NavigationChart"/>.
 5/// </summary>
 6public readonly struct NavigationChartCellUpdate
 7{
 8    /// <summary>
 9    /// The target cell index on the X axis.
 10    /// </summary>
 11    public int X { get; }
 12
 13    /// <summary>
 14    /// The target cell index on the Y axis.
 15    /// </summary>
 16    public int Y { get; }
 17
 18    /// <summary>
 19    /// The target cell index on the Z axis.
 20    /// </summary>
 21    public int Z { get; }
 22
 23    /// <summary>
 24    /// The authored cell payload to write at the requested indices.
 25    /// </summary>
 26    public NavigationChartCell Cell { get; }
 27
 28    /// <summary>
 29    /// Creates a sparse chart-cell update.
 30    /// </summary>
 31    public NavigationChartCellUpdate(int x, int y, int z, NavigationChartCell cell)
 32    {
 533        X = x;
 534        Y = y;
 535        Z = z;
 536        Cell = cell;
 537    }
 38}