TECH TREES WHOO
Implemented procedural tech tree generation by porting GraphSharp to Unity. Also, some database editor convenience changes.
This commit is contained in:
parent
7cd24147ae
commit
d5f2e3734a
573 changed files with 31001 additions and 222 deletions
18
Assets/Scripts/NIH/Graph#/WeightedEdge.cs
Normal file
18
Assets/Scripts/NIH/Graph#/WeightedEdge.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using QuickGraph;
|
||||
|
||||
namespace GraphSharp
|
||||
{
|
||||
public class WeightedEdge<Vertex> : Edge<Vertex>
|
||||
{
|
||||
public float Weight { get; private set; }
|
||||
|
||||
public WeightedEdge(Vertex source, Vertex target)
|
||||
: this(source, target, 1) {}
|
||||
|
||||
public WeightedEdge(Vertex source, Vertex target, float weight)
|
||||
: base(source, target)
|
||||
{
|
||||
this.Weight = weight;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue