Threadsafe for masstesting variables.
This commit is contained in:
@ -9,7 +9,6 @@ public class Pathfinder
|
||||
{
|
||||
|
||||
public RegionManager regionManager;
|
||||
public readonly string workingDir;
|
||||
public PathResult? pathResult;
|
||||
public Dictionary<OsmNode, double>? gScore;
|
||||
private Dictionary<OsmNode, OsmNode>? _cameFromDict;
|
||||
@ -20,7 +19,11 @@ public class Pathfinder
|
||||
if (!Path.Exists(workingDirectory))
|
||||
throw new DirectoryNotFoundException(workingDirectory);
|
||||
regionManager = new(workingDirectory);
|
||||
workingDir = workingDirectory;
|
||||
}
|
||||
|
||||
public Pathfinder(RegionManager regionManager)
|
||||
{
|
||||
this.regionManager = regionManager;
|
||||
}
|
||||
|
||||
public Pathfinder AStar(Coordinates startCoordinates, Coordinates goalCoordinates,
|
||||
|
Reference in New Issue
Block a user