AStar/Graph/Edge.cs
2022-11-03 19:13:26 +01:00

19 lines
454 B
C#

namespace Graph
{
public class Edge
{
public ulong id { get; }
public Node neighbor { get; }
public float time { get; }
public float distance { get; }
public Edge(Node neighbor, float time, float distance, ulong? id)
{
this.neighbor = neighbor;
this.time = time;
this.distance = distance;
this.id = (id != null) ? id.Value : 0;
}
}
}