Platformer Pro  2.3.2
A platform game kit for Unity.
XNode.NodeGraph Class Reference

Base class for all node graphs More...

Inheritance diagram for XNode.NodeGraph:
PlatformerPro.AI.EnemyAIGraph PlatformerPro.Dialog.DialogGraph

Public Member Functions

AddNode< T > ()
 Add a node to the graph by type (convenience method - will call the System.Type version) More...
 
virtual Node AddNode (Type type)
 Add a node to the graph by type More...
 
virtual Node CopyNode (Node original)
 Creates a copy of the original node in the graph More...
 
virtual void RemoveNode (Node node)
 Safely remove a node and all its connections More...
 
virtual void Clear ()
 Remove all nodes and connections from the graph More...
 
virtual XNode.NodeGraph Copy ()
 Create a new deep copy of this graph More...
 

Public Attributes

List< Nodenodes = new List<Node>()
 All nodes in the graph. See: AddNode<T> More...
 

Protected Member Functions

virtual void OnDestroy ()
 

Detailed Description

Base class for all node graphs

Member Function Documentation

◆ AddNode()

virtual Node XNode.NodeGraph.AddNode ( Type  type)
virtual

Add a node to the graph by type

◆ AddNode< T >()

Add a node to the graph by type (convenience method - will call the System.Type version)

Type Constraints
T :Node 

◆ Clear()

virtual void XNode.NodeGraph.Clear ( )
virtual

Remove all nodes and connections from the graph

◆ Copy()

virtual XNode.NodeGraph XNode.NodeGraph.Copy ( )
virtual

Create a new deep copy of this graph

◆ CopyNode()

virtual Node XNode.NodeGraph.CopyNode ( Node  original)
virtual

Creates a copy of the original node in the graph

◆ OnDestroy()

virtual void XNode.NodeGraph.OnDestroy ( )
protectedvirtual

◆ RemoveNode()

virtual void XNode.NodeGraph.RemoveNode ( Node  node)
virtual

Safely remove a node and all its connections

Parameters
nodeThe node to remove

Member Data Documentation

◆ nodes

List<Node> XNode.NodeGraph.nodes = new List<Node>()

All nodes in the graph. See: AddNode<T>


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