< 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: 26
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
 1//=======================================================================
 2// HeightmapWorldState.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 SwiftCollections;
 9
 10namespace Trailblazer.Heightmaps;
 11
 12/// <summary>
 13/// Owns mutable heightmap state for one <see cref="TrailblazerWorldContext"/>.
 14/// </summary>
 15internal sealed class HeightmapWorldState
 16{
 17    internal SwiftDictionary<string, HeightmapLayerRegistration> LayersByName { get; } = new();
 18
 19    internal int NextRegistrationOrder { get; set; }
 20
 21    internal void Reset()
 22    {
 101023        LayersByName.Clear();
 101024        NextRegistrationOrder = 0;
 101025    }
 26}

Methods/Properties

Reset()