Constructor
new InputSocket(name, node, type, value)
Construct a new InputSocket
Parameters:
Name | Type | Default | Description |
---|---|---|---|
name |
string | The name of the socket | |
node |
Node | The parent node | |
type |
Type | The type of the socket | |
value |
any | 0 | The default value of the socket |
- Source:
Classes
Members
(private) peer
The only peer socket
- Source:
Methods
clone()
Clone the spcket
- Source:
connect(socket)
Connect this socket to another (output) socket
Parameters:
Name | Type | Description |
---|---|---|
socket |
Socket | The output socket to connect |
- Source:
disconnect()
Disconnects this socket from its peer
- Source:
(async) evaluate()
Evaluate the socket value. If the socket is connected,
this method goes to the peer socket and take the value.
Else the current socket value remains unchanged
- Source: