AStar/Graph/Edge.cs

14 lines
274 B
C#
Raw Normal View History

namespace Graph
2022-05-05 15:49:28 +02:00
{
public struct Edge
{
public Node neighbor { get; }
2022-10-31 23:10:28 +01:00
public float weight { get; }
public Edge(Node neighbor, float 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
}
}
}