Moved fields for serialization.

This commit is contained in:
glax 2023-04-22 17:49:27 +02:00
parent a1d9ccad46
commit ed46a419e3

View File

@ -5,10 +5,10 @@ namespace Pathfinding;
public class PathResult
{
[JsonInclude]public TimeSpan calcTime;
[JsonInclude]public List<PathNode> pathNodes;
[JsonInclude]public double distance;
[JsonInclude]public double weight;
[JsonInclude]public TimeSpan calcTime;
[JsonInclude]public List<PathNode> pathNodes;
[JsonConstructor]
public PathResult(TimeSpan calcTime, List<PathNode> pathNodes, double distance, double weight)