Dungeon Architect  17.0.0
DungeonArchitect.UI.Widgets.GraphEditors.GraphOperations Class Reference

Static Public Member Functions

static T CreateNode< T > (Graph graph, UIUndoSystem undo)
 Creates a new graph node of the specified type More...
 
static GraphNode CreateNode (Graph graph, Type t, UIUndoSystem undo)
 Creates a graph node of the specified type More...
 
static T DuplicateNode< T > (Graph graph, T originalNode, UIUndoSystem undo)
 Makes a deep copy of a node. Called when a node is copy pasted More...
 
static void DestroyNode (GraphNode node, UIUndoSystem undo)
 Destroys a node and removes all references of it from the graph model. Called when the node is deleted from the editor More...
 
static void DestroyLink (GraphLink link, UIUndoSystem undo)
 Destroys a node and removes all references of it from the graph model. Called when the node is deleted from the editor More...
 
static void BreakInputLinks (GraphNode node, UIUndoSystem undo)
 Breaks all links connected to the input pins More...
 
static void BreakOutputLinks (GraphNode node, UIUndoSystem undo)
 Breaks all links connected to the output pins More...
 
static T CreateLink< T > (Graph graph)
 Creates a link of the specified type More...
 

Detailed Description

Definition at line 10 of file GraphOperations.cs.

Member Function Documentation

◆ BreakInputLinks()

static void DungeonArchitect.UI.Widgets.GraphEditors.GraphOperations.BreakInputLinks ( GraphNode  node,
UIUndoSystem  undo 
)
static

Breaks all links connected to the input pins

Definition at line 148 of file GraphOperations.cs.

◆ BreakOutputLinks()

static void DungeonArchitect.UI.Widgets.GraphEditors.GraphOperations.BreakOutputLinks ( GraphNode  node,
UIUndoSystem  undo 
)
static

Breaks all links connected to the output pins

Definition at line 156 of file GraphOperations.cs.

◆ CreateLink< T >()

static T DungeonArchitect.UI.Widgets.GraphEditors.GraphOperations.CreateLink< T > ( Graph  graph)
static

Creates a link of the specified type

Template Parameters
TThe type of the link. Should be GraphLink or one of its subclass
Returns
Type Constraints
T :GraphLink 

Definition at line 185 of file GraphOperations.cs.

◆ CreateNode()

static GraphNode DungeonArchitect.UI.Widgets.GraphEditors.GraphOperations.CreateNode ( Graph  graph,
Type  t,
UIUndoSystem  undo 
)
static

Creates a graph node of the specified type

Parameters
tThe type of node to create. Should be a subclass of GraphNode
Returns
The created graph node

Definition at line 29 of file GraphOperations.cs.

◆ CreateNode< T >()

Creates a new graph node of the specified type

Template Parameters
TThe type of node to create. Should be a subclass of GraphNode
Returns
The created graph node
Type Constraints
T :GraphNode 

Definition at line 17 of file GraphOperations.cs.

◆ DestroyLink()

static void DungeonArchitect.UI.Widgets.GraphEditors.GraphOperations.DestroyLink ( GraphLink  link,
UIUndoSystem  undo 
)
static

Destroys a node and removes all references of it from the graph model. Called when the node is deleted from the editor

Parameters
node

Definition at line 130 of file GraphOperations.cs.

◆ DestroyNode()

static void DungeonArchitect.UI.Widgets.GraphEditors.GraphOperations.DestroyNode ( GraphNode  node,
UIUndoSystem  undo 
)
static

Destroys a node and removes all references of it from the graph model. Called when the node is deleted from the editor

Parameters
node

Definition at line 83 of file GraphOperations.cs.

◆ DuplicateNode< T >()

static T DungeonArchitect.UI.Widgets.GraphEditors.GraphOperations.DuplicateNode< T > ( Graph  graph,
originalNode,
UIUndoSystem  undo 
)
static

Makes a deep copy of a node. Called when a node is copy pasted

Template Parameters
T
Parameters
originalNode
Returns
Type Constraints
T :GraphNode 

Definition at line 72 of file GraphOperations.cs.


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