/tg/ Station 13 - Modules - TypesVar Details - Proc Details

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_portsThe ports this port is wired to.
triggerThe proc that this trigger will call on the connected component.

Procs

can_receive_from_datatypeDetermines if a datatype is compatible with another port of a different type.
check_typeHandle type updates from connected output ports, breaking uncastable connections.
connectConnects an input port to an output port.
handle_manual_inputDetermines if a datatype is compatible with another port of a different type.
receive_valueMirror value updates from connected output ports after an input_receive_delay.
set_inputUpdates 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:

check_type

Handle type updates from connected output ports, breaking uncastable connections.

connect

Connects an input port to an output port.

Arguments:

handle_manual_input

Determines if a datatype is compatible with another port of a different type.

Arguments:

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