Use BitArray for MightSee

This commit is contained in:
Jarrod Doyle 2025-01-27 19:25:51 +00:00
parent f12e723056
commit ec9c20423d
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
using System.Collections;
using System.Numerics; using System.Numerics;
using KeepersCompound.LGS.Database.Chunks; using KeepersCompound.LGS.Database.Chunks;
@ -14,7 +15,7 @@ public class PotentiallyVisibleSet
private readonly struct Edge(int mightSeeLength, int destination, Poly poly) private readonly struct Edge(int mightSeeLength, int destination, Poly poly)
{ {
public readonly bool[] MightSee = new bool[mightSeeLength]; public readonly BitArray MightSee = new(mightSeeLength);
public readonly int Destination = destination; public readonly int Destination = destination;
public readonly Poly Poly = poly; public readonly Poly Poly = poly;