2023-04-13 19:18:25 +02:00
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
namespace Pathfinding;
|
|
|
|
|
|
|
|
public class PathResult
|
|
|
|
{
|
|
|
|
[JsonInclude]public TimeSpan calcTime;
|
|
|
|
[JsonInclude]public List<PathNode> pathNodes;
|
|
|
|
|
2023-04-20 19:37:34 +02:00
|
|
|
[JsonConstructor]
|
2023-04-13 19:18:25 +02:00
|
|
|
public PathResult(TimeSpan calcTime, List<PathNode> pathNodes)
|
|
|
|
{
|
|
|
|
this.calcTime = calcTime;
|
|
|
|
this.pathNodes = pathNodes;
|
|
|
|
}
|
|
|
|
}
|