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
21
Assets/Scripts/NIH/Graph#/ICompoundGraph.cs
Normal file
21
Assets/Scripts/NIH/Graph#/ICompoundGraph.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using System.Collections.Generic;
|
||||
using QuickGraph;
|
||||
using System.Diagnostics.Contracts;
|
||||
|
||||
namespace GraphSharp
|
||||
{
|
||||
public interface ICompoundGraph<TVertex, TEdge> : IBidirectionalGraph<TVertex, TEdge>
|
||||
where TEdge : IEdge<TVertex>
|
||||
{
|
||||
bool AddChildVertex( TVertex parent, TVertex child );
|
||||
int AddChildVertexRange( TVertex parent, IEnumerable<TVertex> children );
|
||||
TVertex GetParent( TVertex vertex );
|
||||
bool IsChildVertex( TVertex vertex );
|
||||
IEnumerable<TVertex> GetChildrenVertices( TVertex vertex );
|
||||
int GetChildrenCount( TVertex vertex );
|
||||
bool IsCompoundVertex( TVertex vertex );
|
||||
|
||||
IEnumerable<TVertex> CompoundVertices { get; }
|
||||
IEnumerable<TVertex> SimpleVertices { get; }
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue