InputNode Class
This class is responsible for managing input nodes. These nodes are heavily limited and effectivelly can only carry a value and fire proceeding nodes as it is simply an input, nothing more.
InputNode .new(string name)
Creates and returns the InputNode with the given name.
void :()
Fires the node and fires any node that is at it's output, potentially causing a chain reaction.
This function is fired when the InputNode object is called, such as:
This function is fired when the InputNode object is called, such as:
inputNode:()
void :ClearValue()
Sets the node's output value to 0. It is not set to nil like with Node because it has to have some sort of output.
Inherited from Node
:
Only unchanged and unmodified functions are listed below.
number :GetValue()
Returns the node's output value if calculated. If not, calculates it and returns the new output value.
void :SetValue(number value)
Sets the node's output value to !value!.
void :AddOutputSynapse(Synapse outputSynapse)
Adds the synapse !outputSynapse! as an output synapse.
array :GetOutputSynapses()
Returns the output synapses.
void :RemoveOutputSynapse(Synapse outputSynapse)
Removes the output synapse !inputSynapse!.
void :ClearOutputSynapses()
Removes all output synapses.