![]() |
EasyTalk API
|
A node which allows for a flexible number of items to be contained within it. More...
Inherits EasyTalk.Nodes.Core.Node.
Inherited by EasyTalk.Nodes.Common.ConversationNode, EasyTalk.Nodes.Common.OptionNode, EasyTalk.Nodes.Flow.PathSelectorNode, EasyTalk.Nodes.Flow.RandomNode, EasyTalk.Nodes.Flow.SequenceNode, EasyTalk.Nodes.Logic.BuildStringNode, EasyTalk.Nodes.Logic.ValueSelectorNode, EasyTalk.Nodes.Utility.HideNode, and EasyTalk.Nodes.Utility.ShowNode.
Public Member Functions | |
ListNode () | |
Creates a new ListNode. | |
virtual void | AddItem (ListItem item) |
Adds the specified item to this node's List of items. | |
void | RemoveItem (ListItem item) |
Removes the specified item from this node's List of items. | |
void | RemoveItem (int index) |
Removes the item at the specified index from this node. | |
void | RemoveAllItems () |
Removes all items from the node. | |
![]() | |
void | AddInput (NodeConnection input) |
Adds the provided input connection to the node's inputs. | |
void | AddOutput (NodeConnection output) |
Adds the provided output connection to the node's outputs. | |
NodeConnection | AddInput (InputOutputType connectionType) |
Adds a new input connection of the specified type to the node's inputs. | |
NodeConnection | AddOutput (InputOutputType connectionType) |
Adds a new output connection of the specified type to the node's outputs. | |
NodeConnection | FindOutputOfType (InputOutputType outputType) |
Finds the first output which matches the specified output type. | |
NodeConnection | FindInputOfType (InputOutputType inputType) |
Finds the first input which matches the specified input type. | |
bool | HasConnectedInputs () |
Returns true if this node has inputs which are connected to other node outputs. | |
bool | HasConnectedOutputs () |
Returns true if this node has outputs which are connected to other node inputs. | |
List< int > | FindDependencyOutputIDs () |
Finds and returns a List of all output IDs which are connected to this node's value (non-dialogue-flow) inputs. | |
string | GetJSON () |
Returns a JSON string representation of the node. | |
Protected Attributes | |
List< ListItem > | items = new List<ListItem>() |
The items in the node. | |
![]() | |
int | nodeId = NodeUtils.NextID() |
The ID of the node. | |
string | name |
The name of the node. | |
NodeType | nodeType |
The type of the node. | |
List< NodeConnection > | inputs = new List<NodeConnection>() |
A List of input connections of the node. | |
List< NodeConnection > | outputs = new List<NodeConnection>() |
A List of output connections of the node. | |
Properties | |
List< ListItem > | Items [get, set] |
Gets or sets the List of items in this node. | |
![]() | |
int | ID [get, set] |
Gets or sets the node ID. | |
string | NodeTypeString [get, set] |
Gets or sets the node type string. | |
float | XPosition [get, set] |
Gets or sets the X position of the node. | |
float | YPosition [get, set] |
Gets or sets the Y position of the node. | |
string | Name [get, set] |
Gets or sets the name of the node. | |
float | Width [get, set] |
Gets or sets the width of the node. | |
float | Height [get, set] |
Gets or sets the height of the node. | |
NodeType | NodeType [get, set] |
Gets or sets the node type. | |
List< NodeConnection > | Inputs [get, set] |
Gets or sets the List of input connections of the node. | |
List< NodeConnection > | Outputs [get, set] |
Gets or sets the List of output connections of the node. | |
Additional Inherited Members | |
![]() | |
static Node | Deserialize (string json) |
Deserializes a Node from the specified JSON string. | |
![]() | |
List< NodeConnection > | FindFlowInputs () |
Finds and returns a List of all inputs which are dialogue flow inputs. | |
List< NodeConnection > | FindFlowOutputs () |
Finds and returns a List of all outputs which are dialogue flow outputs. | |
A node which allows for a flexible number of items to be contained within it.
EasyTalk.Nodes.Core.ListNode.ListNode | ( | ) |
Creates a new ListNode.
|
virtual |
Adds the specified item to this node's List of items.
item | The ListItem to add. |
void EasyTalk.Nodes.Core.ListNode.RemoveAllItems | ( | ) |
Removes all items from the node.
void EasyTalk.Nodes.Core.ListNode.RemoveItem | ( | int | index | ) |
Removes the item at the specified index from this node.
index | The index of the item to remove. |
void EasyTalk.Nodes.Core.ListNode.RemoveItem | ( | ListItem | item | ) |
Removes the specified item from this node's List of items.
item | The ListItem to remove. |
The items in the node.
|
getset |
Gets or sets the List of items in this node.