mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
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:
co-authored by
Watermelon914
parent
07d8766fe7
commit
a4be13ac62
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user