Esempio n. 1
0
 public Hasher(AstarPath active)
 {
     hash                  = 0;
     this.debugData        = active.debugPathData;
     includePathSearchInfo = debugData != null && (active.debugMode == GraphDebugMode.F || active.debugMode == GraphDebugMode.G || active.debugMode == GraphDebugMode.H || active.showSearchTree);
     includeAreaInfo       = active.debugMode == GraphDebugMode.Areas;
     AddHash((int)active.debugMode);
     AddHash(active.debugFloor.GetHashCode());
     AddHash(active.debugRoof.GetHashCode());
     AddHash(AstarColor.ColorHash());
 }
Esempio n. 2
0
 public NodeHasher(AstarPath active)
 {
     hasher                = default;
     this.debugData        = active.debugPathData;
     includePathSearchInfo = debugData != null && (active.debugMode == GraphDebugMode.F || active.debugMode == GraphDebugMode.G || active.debugMode == GraphDebugMode.H || active.showSearchTree);
     includeAreaInfo       = active.debugMode == GraphDebugMode.Areas;
     hasher.Add(active.debugMode);
     hasher.Add(active.debugFloor);
     hasher.Add(active.debugRoof);
     hasher.Add(AstarColor.ColorHash());
 }