EasyTalk API
Loading...
Searching...
No Matches
EasyTalk.Nodes.Core.NodeConnection Class Reference

The NodeConnection class is used to define a connection point (an input or output) for a node. More...

Public Member Functions

 NodeConnection ()
 Creates a new NodeConnection.
 
 NodeConnection (int ownerId, InputOutputType connectionType)
 Creates a new NodeConnection of the specified type.
 
bool IsDialogueFlowConnection ()
 Returns true if the connection is a dialogue flow type connection, which includes the DIALGOUE_FLOW, DIALOGUE_TRUE_FLOW, and DIALOGUE_FALSE_FLOW types.
 

Protected Attributes

int id = NodeUtils.NextID()
 The ID of the connection.
 
List< int > attachedIds = new List<int>()
 A List of IDs for connections which are attached to this connection.
 
int ownerId = NodeUtils.NextID()
 The ID of the node this connection belongs to.
 
InputOutputType connectionType = InputOutputType.ANY
 The type of the connection.
 

Properties

int ID [get, set]
 Gets or sets the ID of the connection.
 
List< int > AttachedIDs [get, set]
 Gets or sets the List of IDs for connections which are attached to this connection.
 
int OwnerID [get, set]
 Gets or sets the ID of the node this connection belongs to.
 
InputOutputType ConnectionType [get, set]
 Gets or sets the connection type for the connection.
 
string ConnectionTypeString [get, set]
 Gets or sets the connection type for the connection from a string.
 

Detailed Description

The NodeConnection class is used to define a connection point (an input or output) for a node.

Constructor & Destructor Documentation

◆ NodeConnection() [1/2]

EasyTalk.Nodes.Core.NodeConnection.NodeConnection ( )

Creates a new NodeConnection.

◆ NodeConnection() [2/2]

EasyTalk.Nodes.Core.NodeConnection.NodeConnection ( int ownerId,
InputOutputType connectionType )

Creates a new NodeConnection of the specified type.

Parameters
ownerIdThe ID of the node which this connection belongs to.
connectionTypeThe type of the node connection.

Member Function Documentation

◆ IsDialogueFlowConnection()

bool EasyTalk.Nodes.Core.NodeConnection.IsDialogueFlowConnection ( )

Returns true if the connection is a dialogue flow type connection, which includes the DIALGOUE_FLOW, DIALOGUE_TRUE_FLOW, and DIALOGUE_FALSE_FLOW types.

Returns
Whether the connection is a dialogue flow type connection.

Member Data Documentation

◆ attachedIds

List<int> EasyTalk.Nodes.Core.NodeConnection.attachedIds = new List<int>()
protected

A List of IDs for connections which are attached to this connection.

◆ connectionType

InputOutputType EasyTalk.Nodes.Core.NodeConnection.connectionType = InputOutputType.ANY
protected

The type of the connection.

◆ id

int EasyTalk.Nodes.Core.NodeConnection.id = NodeUtils.NextID()
protected

The ID of the connection.

◆ ownerId

int EasyTalk.Nodes.Core.NodeConnection.ownerId = NodeUtils.NextID()
protected

The ID of the node this connection belongs to.

Property Documentation

◆ AttachedIDs

List<int> EasyTalk.Nodes.Core.NodeConnection.AttachedIDs
getset

Gets or sets the List of IDs for connections which are attached to this connection.

◆ ConnectionType

InputOutputType EasyTalk.Nodes.Core.NodeConnection.ConnectionType
getset

Gets or sets the connection type for the connection.

◆ ConnectionTypeString

string EasyTalk.Nodes.Core.NodeConnection.ConnectionTypeString
getset

Gets or sets the connection type for the connection from a string.

◆ ID

int EasyTalk.Nodes.Core.NodeConnection.ID
getset

Gets or sets the ID of the connection.

◆ OwnerID

int EasyTalk.Nodes.Core.NodeConnection.OwnerID
getset

Gets or sets the ID of the node this connection belongs to.