A conditional node which compares two numeric values, outputs the result of the comparison, and continues down the dialogue flow path attributed to the result.
More...
Inherits EasyTalk.Nodes.Core.Node, EasyTalk.Nodes.Core.DialogueFlowNode, EasyTalk.Nodes.Core.ConditionalNode, and EasyTalk.Nodes.Core.FunctionalNode.
|
| CompareNumbersNode () |
| Creates a new CompareNumbersNode.
|
|
void | DetermineAndStoreValue (NodeHandler nodeHandler, Dictionary< int, object > nodeValues, GameObject convoOwner=null) |
| Determines the value of this node and stores it in the provided Dictionary of node and connection IDs to values.- Parameters
-
nodeHandler | The node handler being used. |
nodeValues | A mapping between node or connection IDs and the values attributed to them. |
convoOwner | The GameObject which on which the dialogue logic is currently running. |
|
|
List< int > | GetDependencyOutputIDs () |
| Returns a List of IDs for output connections that this node is dependent on in order to evaluate itself and determine the value to store.- Returns
- The List of output connections that this node is dependent on.
|
|
NodeConnection | GetFalseOutput () |
| Returns the dialogue flow output connection for when the result of the node's condition is false.- Returns
- The dialogue flow output connection for when the result of the node's condition is false.
|
|
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.
|
|
NodeConnection | GetOutput (bool value) |
| Returns the dialogue flow output which corresponds to the specified boolean value.- Parameters
-
value | The value to retrieve a dialogue flow output for. |
- Returns
- The dialogue flow output which corresponds to the specified boolean value.
|
|
NodeConnection | GetTrueOutput () |
| Returns the dialogue flow output connection for when the result of the node's condition is true.- Returns
- The dialogue flow output connection for when the result of the node's condition is true.
|
|
bool | HasDependencies () |
| Returns whether the node is dependent on values coming into input connections.- Returns
- Whether the node has dependencies.
|
|
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.
|
|
|
string | ComparisonTypeString [get, set] |
| Gets or sets the type of comparison this node should perform (from a string equivalent to a NumberComparisonType toString() value).
|
|
NumberComparisonType | ComparisonType [get, set] |
| Gets or sets the type of comparison this node should perform.
|
|
string | ValueA [get, set] |
| Gets or sets the first numeric value to use in the comparison.
|
|
string | ValueB [get, set] |
| Gets or sets the second numeric value to use in the comparison.
|
|
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.
|
|
A conditional node which compares two numeric values, outputs the result of the comparison, and continues down the dialogue flow path attributed to the result.
◆ CompareNumbersNode()
EasyTalk.Nodes.Logic.CompareNumbersNode.CompareNumbersNode |
( |
| ) |
|
Creates a new CompareNumbersNode.
◆ DetermineAndStoreValue()
void EasyTalk.Nodes.Logic.CompareNumbersNode.DetermineAndStoreValue |
( |
NodeHandler | nodeHandler, |
|
|
Dictionary< int, object > | nodeValues, |
|
|
GameObject | convoOwner = null ) |
Determines the value of this node and stores it in the provided Dictionary of node and connection IDs to values.
- Parameters
-
nodeHandler | The node handler being used. |
nodeValues | A mapping between node or connection IDs and the values attributed to them. |
convoOwner | The GameObject which on which the dialogue logic is currently running. |
Implements EasyTalk.Nodes.Core.FunctionalNode.
◆ GetDependencyOutputIDs()
List< int > EasyTalk.Nodes.Logic.CompareNumbersNode.GetDependencyOutputIDs |
( |
| ) |
|
Returns a List of IDs for output connections that this node is dependent on in order to evaluate itself and determine the value to store.
- Returns
- The List of output connections that this node is dependent on.
Implements EasyTalk.Nodes.Core.FunctionalNode.
◆ GetFalseOutput()
NodeConnection EasyTalk.Nodes.Logic.CompareNumbersNode.GetFalseOutput |
( |
| ) |
|
Returns the dialogue flow output connection for when the result of the node's condition is false.
- Returns
- The dialogue flow output connection for when the result of the node's condition is false.
Implements EasyTalk.Nodes.Core.ConditionalNode.
◆ GetFlowInput()
NodeConnection EasyTalk.Nodes.Logic.CompareNumbersNode.GetFlowInput |
( |
| ) |
|
◆ GetFlowOutput()
NodeConnection EasyTalk.Nodes.Logic.CompareNumbersNode.GetFlowOutput |
( |
| ) |
|
◆ GetOutput()
NodeConnection EasyTalk.Nodes.Logic.CompareNumbersNode.GetOutput |
( |
bool | value | ) |
|
Returns the dialogue flow output which corresponds to the specified boolean value.
- Parameters
-
value | The value to retrieve a dialogue flow output for. |
- Returns
- The dialogue flow output which corresponds to the specified boolean value.
Implements EasyTalk.Nodes.Core.ConditionalNode.
◆ GetTrueOutput()
NodeConnection EasyTalk.Nodes.Logic.CompareNumbersNode.GetTrueOutput |
( |
| ) |
|
Returns the dialogue flow output connection for when the result of the node's condition is true.
- Returns
- The dialogue flow output connection for when the result of the node's condition is true.
Implements EasyTalk.Nodes.Core.ConditionalNode.
◆ HasDependencies()
bool EasyTalk.Nodes.Logic.CompareNumbersNode.HasDependencies |
( |
| ) |
|
◆ comparisonType
The type of comparison to perform.
◆ valueA
string EasyTalk.Nodes.Logic.CompareNumbersNode.valueA |
|
private |
The first value to use in the comparison.
◆ valueB
string EasyTalk.Nodes.Logic.CompareNumbersNode.valueB |
|
private |
The second value to use in the comparison.
◆ ComparisonType
Gets or sets the type of comparison this node should perform.
◆ ComparisonTypeString
string EasyTalk.Nodes.Logic.CompareNumbersNode.ComparisonTypeString |
|
getset |
Gets or sets the type of comparison this node should perform (from a string equivalent to a NumberComparisonType toString() value).
◆ ValueA
string EasyTalk.Nodes.Logic.CompareNumbersNode.ValueA |
|
getset |
Gets or sets the first numeric value to use in the comparison.
◆ ValueB
string EasyTalk.Nodes.Logic.CompareNumbersNode.ValueB |
|
getset |
Gets or sets the second numeric value to use in the comparison.