Adds a lot of QoL to the integrated circuit UI. (#61677)

Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
This commit is contained in:
Watermelon914
2021-09-25 16:40:24 -07:00
committed by GitHub
co-authored by Watermelon914
parent 07d8766fe7
commit a4be13ac62
5 changed files with 317 additions and 123 deletions
+7 -2
View File
@@ -168,10 +168,15 @@
src.connected_ports = list()
/**
* Introduces two ports to one another.
* Connects an input port to an output port.
*
* Arguments:
* * output - The output port to connect to.
*/
/datum/port/input/proc/connect(datum/port/output/output)
connected_ports |= output
if(output in connected_ports)
return
connected_ports += output
RegisterSignal(output, COMSIG_PORT_SET_VALUE, .proc/receive_value)
RegisterSignal(output, COMSIG_PORT_SET_TYPE, .proc/check_type)
RegisterSignal(output, COMSIG_PORT_DISCONNECT, .proc/disconnect)