AStar/astar/Edge.cs

14 lines
276 B
C#
Raw Normal View History

namespace Graph
2022-05-05 15:49:28 +02:00
{
public struct Edge
{
public Node neighbor { get; }
2022-05-05 16:23:00 +02:00
public ushort weight { get; }
public Edge(Node neighbor, ushort weight)
2022-05-05 15:49:28 +02:00
{
this.neighbor = neighbor;
2022-05-05 16:23:00 +02:00
this.weight = weight;
2022-05-05 15:49:28 +02:00
}
}
}