< Summary

Information
Class: Trailblazer.Heightmaps.HeightmapWorldState
Assembly: Trailblazer
File(s): /home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Heightmaps/HeightmapWorldState.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 19
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
Reset()100%11100%

File(s)

/home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Heightmaps/HeightmapWorldState.cs

#LineLine coverage
 1using SwiftCollections;
 2
 3namespace Trailblazer.Heightmaps;
 4
 5/// <summary>
 6/// Owns mutable heightmap state for one <see cref="TrailblazerWorldContext"/>.
 7/// </summary>
 8internal sealed class HeightmapWorldState
 9{
 10    internal SwiftDictionary<string, HeightmapLayerRegistration> LayersByName { get; } = new();
 11
 12    internal int NextRegistrationOrder { get; set; }
 13
 14    internal void Reset()
 15    {
 98616        LayersByName.Clear();
 98617        NextRegistrationOrder = 0;
 98618    }
 19}

Methods/Properties

Reset()