This repository provides the PriorityQueue
from .NET 6 and up
as a UPM package.
The PriorityQueue
provided by this package is a faithful copy of the PriorityQueue
provided in .NET 6 and up with the following changes:
- The
PriorityQueue
has been placed in theBeardedPlatypus.Collections.Generic
to ensure it does not clash in the future if thePriorityQueue
is added to Unity. Array.MaxSize
has been replaced byint.MaxValue
.- Exception messages have been moved to a separate class.
- Exception methods have been moved to
ExceptionExtensions
.
The package can be installed through the "package manager". Click on the "Add package from GIT url..." and add the following url:
https://github.com/BeardedPlatypus/unity-net-priority-queue.git
The source files are copied from the PriorityQueue.cs
and
related files in the dotnet runtime repository.