A prioritized object that can be inserted into a PriorityQueue

Variables

read onlyposition:Int

Tracks the position inside a binary heap.

read onlypriority:Float

The priority of this object.

By default, a higher number equals a higher priority.

This value should never be changed by the user after being added to a priority queue - use PriorityQueue.reprioritize() instead.