Moved fields for serialization.
This commit is contained in:
parent
a1d9ccad46
commit
ed46a419e3
@ -5,10 +5,10 @@ namespace Pathfinding;
|
|||||||
|
|
||||||
public class PathResult
|
public class PathResult
|
||||||
{
|
{
|
||||||
[JsonInclude]public TimeSpan calcTime;
|
|
||||||
[JsonInclude]public List<PathNode> pathNodes;
|
|
||||||
[JsonInclude]public double distance;
|
[JsonInclude]public double distance;
|
||||||
[JsonInclude]public double weight;
|
[JsonInclude]public double weight;
|
||||||
|
[JsonInclude]public TimeSpan calcTime;
|
||||||
|
[JsonInclude]public List<PathNode> pathNodes;
|
||||||
|
|
||||||
[JsonConstructor]
|
[JsonConstructor]
|
||||||
public PathResult(TimeSpan calcTime, List<PathNode> pathNodes, double distance, double weight)
|
public PathResult(TimeSpan calcTime, List<PathNode> pathNodes, double distance, double weight)
|
||||||
|
Reference in New Issue
Block a user