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()); }
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()); }