EasyTalk API
Loading...
Searching...
No Matches
EasyTalk.Nodes.Common.AppendNode Class Reference

A node for appending text to the current conversation. More...

Inherits EasyTalk.Nodes.Core.Node, and EasyTalk.Nodes.Core.DialogueFlowNode.

Public Member Functions

 AppendNode ()
 Creates a new AppendNode.
 
NodeConnection GetFlowInput ()
 Returns the dialogue flow input for the node.
Returns
The dialogue flow input for the node.

 
NodeConnection GetFlowOutput ()
 Returns the dialogue flow output for the node.
Returns
The dialogue flow output for the node.

 
- Public Member Functions inherited from EasyTalk.Nodes.Core.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.
 

Properties

string Text [get, set]
 Gets or sets the text to append.
 
AudioClip AudioClip [get, set]
 Gets or sets the audio clip to play.
 
int AudioAssetID [get, set]
 Gets or sets the asset ID of the audio clip attributed to the text.
 
string AudioClipFile [get, set]
 Gets or sets the audio clip file path attributed to the text.
 
- Properties inherited from EasyTalk.Nodes.Core.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< NodeConnectionInputs [get, set]
 Gets or sets the List of input connections of the node.
 
List< NodeConnectionOutputs [get, set]
 Gets or sets the List of output connections of the node.
 

Private Attributes

string text = ""
 The text to append.
 
AudioClip audioClip
 The audio clip to play.
 
string audioClipFile
 The audio clip file attributed to the line of dialogue.
 
int audioAssetID
 The asset ID of the audio file attributed to the line of dialogue.
 

Additional Inherited Members

- Static Public Member Functions inherited from EasyTalk.Nodes.Core.Node
static Node Deserialize (string json)
 Deserializes a Node from the specified JSON string.
 
- Protected Member Functions inherited from EasyTalk.Nodes.Core.Node
List< NodeConnectionFindFlowInputs ()
 Finds and returns a List of all inputs which are dialogue flow inputs.
 
List< NodeConnectionFindFlowOutputs ()
 Finds and returns a List of all outputs which are dialogue flow outputs.
 
- Protected Attributes inherited from EasyTalk.Nodes.Core.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< NodeConnectioninputs = new List<NodeConnection>()
 A List of input connections of the node.
 
List< NodeConnectionoutputs = new List<NodeConnection>()
 A List of output connections of the node.
 

Detailed Description

A node for appending text to the current conversation.

Constructor & Destructor Documentation

◆ AppendNode()

EasyTalk.Nodes.Common.AppendNode.AppendNode ( )

Creates a new AppendNode.

Member Function Documentation

◆ GetFlowInput()

NodeConnection EasyTalk.Nodes.Common.AppendNode.GetFlowInput ( )

Returns the dialogue flow input for the node.

Returns
The dialogue flow input for the node.

Implements EasyTalk.Nodes.Core.DialogueFlowNode.

◆ GetFlowOutput()

NodeConnection EasyTalk.Nodes.Common.AppendNode.GetFlowOutput ( )

Returns the dialogue flow output for the node.

Returns
The dialogue flow output for the node.

Implements EasyTalk.Nodes.Core.DialogueFlowNode.

Member Data Documentation

◆ audioAssetID

int EasyTalk.Nodes.Common.AppendNode.audioAssetID
private

The asset ID of the audio file attributed to the line of dialogue.

◆ audioClip

AudioClip EasyTalk.Nodes.Common.AppendNode.audioClip
private

The audio clip to play.

◆ audioClipFile

string EasyTalk.Nodes.Common.AppendNode.audioClipFile
private

The audio clip file attributed to the line of dialogue.

◆ text

string EasyTalk.Nodes.Common.AppendNode.text = ""
private

The text to append.

Property Documentation

◆ AudioAssetID

int EasyTalk.Nodes.Common.AppendNode.AudioAssetID
getset

Gets or sets the asset ID of the audio clip attributed to the text.

◆ AudioClip

AudioClip EasyTalk.Nodes.Common.AppendNode.AudioClip
getset

Gets or sets the audio clip to play.

◆ AudioClipFile

string EasyTalk.Nodes.Common.AppendNode.AudioClipFile
getset

Gets or sets the audio clip file path attributed to the text.

◆ Text

string EasyTalk.Nodes.Common.AppendNode.Text
getset

Gets or sets the text to append.