public PathfindingImpl(int mapWidth, int mapHeight, IsPassable unpassabilityFunc) { m_Width = mapWidth; m_Height = mapHeight; m_Map = new MapNode[mapWidth,mapHeight]; m_Unpassable = unpassabilityFunc; InitMap(); }
public PathfindingImpl(int mapWidth, int mapHeight, IsPassable unpassabilityFunc) { m_Width = mapWidth; m_Height = mapHeight; m_Map = new MapNode[mapWidth, mapHeight]; m_Unpassable = unpassabilityFunc; InitMap(); }
public override int GetHashCode() { unchecked { int HashCode = ZValue; HashCode = (HashCode * 397) ^ IsRoot.GetHashCode(); HashCode = (HashCode * 397) ^ (Controls?.GetHashCode() ?? 0); HashCode = (HashCode * 397) ^ (Parent?.GetHashCode() ?? 0); HashCode = (HashCode * 397) ^ (int)MadeOf; HashCode = (HashCode * 397) ^ (Name?.GetHashCode() ?? 0); HashCode = (HashCode * 397) ^ IsPassable.GetHashCode(); HashCode = (HashCode * 397) ^ (Bounds?.GetHashCode() ?? 0); HashCode = (HashCode * 397) ^ (Rand?.GetHashCode() ?? 0); return(HashCode); } }