< Summary

Information
Class: GridForge.Grids.OccupancyRecord
Assembly: GridForge
File(s): /home/runner/work/GridForge/GridForge/src/GridForge/Grids/Managers/OccupancyRecord.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 25
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/GridForge/GridForge/src/GridForge/Grids/Managers/OccupancyRecord.cs

#LineLine coverage
 1//=======================================================================
 2// OccupancyRecord.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 GridForge.Spatial;
 9using SwiftCollections;
 10
 11namespace GridForge.Grids;
 12
 13/// <summary>
 14/// Tracks all voxel registrations for a single occupant.
 15/// </summary>
 16internal sealed class OccupancyRecord
 17{
 18    public readonly IVoxelOccupant Occupant;
 76819    public readonly SwiftDictionary<WorldVoxelIndex, OccupantTicket> Tickets = new SwiftDictionary<WorldVoxelIndex, Occu
 20
 76821    public OccupancyRecord(IVoxelOccupant occupant)
 22    {
 76823        Occupant = occupant;
 76824    }
 25}