Dungeon Architect  17.0.0
DungeonArchitect.Graphs.Graph Class Reference

Theme Graph data structure holds all the theme nodes and their connections More...

Inheritance diagram for DungeonArchitect.Graphs.Graph:
DungeonArchitect.Flow.Domains.Layout.Tooling.Graph2D.FlowLayoutToolGraph2D DungeonArchitect.Flow.Domains.Tilemap.Tooling.FlowTilemapToolGraph DungeonArchitect.Flow.Exec.FlowExecGraph DungeonArchitect.Grammar.GrammarExecGraph DungeonArchitect.Grammar.GrammarGraph DungeonArchitect.SpatialConstraints.SpatialConstraintGraph

Public Member Functions

virtual void OnEnable ()
 
GraphNode GetNode (string id)
 Gets the node by it's id More...
 
T[] GetNodes< T > ()
 Get all nodes of the specified type More...
 

Properties

DungeonArchitect.Graphs.IndexCounter IndexCounter [get]
 
List< GraphNodeNodes [get]
 List of graph nodes More...
 
List< GraphLinkLinks [get]
 List of graph links connecting the nodes More...
 
IndexCounter TopZIndex [get]
 The z index of the top most node More...
 

Detailed Description

Theme Graph data structure holds all the theme nodes and their connections

Definition at line 30 of file Graph.cs.

Member Function Documentation

◆ GetNode()

GraphNode DungeonArchitect.Graphs.Graph.GetNode ( string  id)

Gets the node by it's id

Parameters
idThe ID of the node
Returns
The retrieved node. null if node with this id doesn't exist

Definition at line 119 of file Graph.cs.

◆ GetNodes< T >()

T [] DungeonArchitect.Graphs.Graph.GetNodes< T > ( )

Get all nodes of the specified type

Template Parameters
TThe type of nodes to retrieve. Should be a subclass of GraphNode
Returns
List of all the nodes of the specified type
Type Constraints
T :GraphNode 

Definition at line 133 of file Graph.cs.

Property Documentation

◆ Links

List<GraphLink> DungeonArchitect.Graphs.Graph.Links
get

List of graph links connecting the nodes

Definition at line 61 of file Graph.cs.

◆ Nodes

List<GraphNode> DungeonArchitect.Graphs.Graph.Nodes
get

List of graph nodes

Definition at line 47 of file Graph.cs.

◆ TopZIndex

IndexCounter DungeonArchitect.Graphs.Graph.TopZIndex
get

The z index of the top most node

Definition at line 72 of file Graph.cs.


The documentation for this class was generated from the following file: