Moved fields for serialization.
This commit is contained in:
parent
a1d9ccad46
commit
ed46a419e3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user