A* Pathfinding Project  4.1.9
The A* Pathfinding Project for Unity 3D
CooperativeContext.Entry Struct Reference

(node,time) pair More...

Detailed Description

(node,time) pair

Public Member Functions

 Entry (GraphNode node, int time)
 
override int GetHashCode ()
 Hash code is overriden because otherwise removing reservations would be extremely slow. More...
 

Public Attributes

GraphNode node
 
int time
 

Constructor & Destructor Documentation

◆ Entry()

Entry ( GraphNode  node,
int  time 
)

Member Function Documentation

◆ GetHashCode()

override int GetHashCode ( )

Hash code is overriden because otherwise removing reservations would be extremely slow.

The CLR will likely only use the node reference to generate the hash code, but since a lot of entries point to the same node we would get a lot of hash collisions

Member Data Documentation

◆ node

GraphNode node

◆ time

int time

The documentation for this struct was generated from the following file: