Input Port
An input port remembers connected output ports.
Registers the PORT_SET_VALUE signal on each connected port, and keeps its value equal to the last such signal received.
Vars | |
connected_ports | The ports this port is wired to. |
---|---|
trigger | The proc that this trigger will call on the connected component. |
Procs | |
can_receive_from_datatype | Determines if a datatype is compatible with another port of a different type. |
check_type | Handle type updates from connected output ports, breaking uncastable connections. |
connect | Connects an input port to an output port. |
handle_manual_input | Determines if a datatype is compatible with another port of a different type. |
receive_value | Mirror value updates from connected output ports after an input_receive_delay. |
set_input | Updates the value of the input and calls input_received on the connected component |
Var Details
connected_ports
The ports this port is wired to.
trigger
The proc that this trigger will call on the connected component.
Proc Details
can_receive_from_datatype
Determines if a datatype is compatible with another port of a different type.
Arguments:
- other_datatype - The datatype to check
check_type
Handle type updates from connected output ports, breaking uncastable connections.
connect
Connects an input port to an output port.
Arguments:
- output - The output port to connect to.
handle_manual_input
Determines if a datatype is compatible with another port of a different type.
Arguments:
- other_datatype - The datatype to check
receive_value
Mirror value updates from connected output ports after an input_receive_delay.
set_input
Updates the value of the input and calls input_received on the connected component