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
43
Assets/Scripts/NIH/Graph#/ISoftMutableGraph.cs
Normal file
43
Assets/Scripts/NIH/Graph#/ISoftMutableGraph.cs
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using QuickGraph;
|
||||
|
||||
namespace GraphSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// Soft mutation means: We can hide the vertices or the edges.
|
||||
/// </summary>
|
||||
/// <typeparam name="TVertex"></typeparam>
|
||||
/// <typeparam name="TEdge"></typeparam>
|
||||
public interface ISoftMutableGraph<TVertex, TEdge> : IBidirectionalGraph<TVertex, TEdge>
|
||||
where TEdge : IEdge<TVertex>
|
||||
{
|
||||
bool HideVertex( TVertex v );
|
||||
bool HideVertex( TVertex v, string tag );
|
||||
void HideVertices( IEnumerable<TVertex> vertices );
|
||||
void HideVertices( IEnumerable<TVertex> vertices, string tag );
|
||||
void HideVerticesIf( Func<TVertex, bool> predicate, string tag );
|
||||
bool IsHiddenVertex( TVertex v );
|
||||
bool UnhideVertex( TVertex v );
|
||||
void UnhideVertexAndEdges( TVertex v );
|
||||
IEnumerable<TVertex> HiddenVertices { get; }
|
||||
int HiddenVertexCount { get; }
|
||||
|
||||
bool HideEdge( TEdge e );
|
||||
bool HideEdge( TEdge e, string tag );
|
||||
void HideEdges( IEnumerable<TEdge> edges );
|
||||
void HideEdges( IEnumerable<TEdge> edges, string tag );
|
||||
void HideEdgesIf( Func<TEdge, bool> predicate, string tag );
|
||||
bool IsHiddenEdge( TEdge e );
|
||||
bool UnhideEdge( TEdge e );
|
||||
void UnhideEdges( IEnumerable<TEdge> edges );
|
||||
void UnhideEdgesIf( Func<TEdge, bool> predicate );
|
||||
IEnumerable<TEdge> HiddenEdgesOf( TVertex v );
|
||||
int HiddenEdgeCountOf( TVertex v );
|
||||
IEnumerable<TEdge> HiddenEdges { get; }
|
||||
int HiddenEdgeCount { get; }
|
||||
|
||||
bool Unhide( string tag );
|
||||
bool UnhideAll( );
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue