appropriate names in PathResult for nodes gSCoreNodes
This commit is contained in:
@ -33,10 +33,10 @@ public static class Pathfinder
|
||||
{
|
||||
Console.WriteLine("Path found.");
|
||||
PathResult path = GetPath(cameFromDict, goalNode, regionManager, DateTime.Now - startCalc);
|
||||
path.AddGScores(gScore);
|
||||
string fileName = $"{new DirectoryInfo(workingDir).Name}-{DateTime.Now.ToFileTime()}.result";
|
||||
string outputFilepath = Path.Join(Directory.GetParent(workingDir)!.FullName, fileName);
|
||||
path.name = outputFilepath;
|
||||
path.AddGScores(gScore);
|
||||
SaveGraph(path, outputFilepath);
|
||||
return path;
|
||||
}
|
||||
|
Reference in New Issue
Block a user