mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-18 03:21:13 +01:00
Enabled communication with Subspace transmitters and squashed bugs (#8723)
First, cycle speed of all NTSL2+ programs has been increased by a factor of, on average 10. Cycles are much faster than I gave them credit for in my original pull.
Secondly, a bug in which programs could bug out and appear on multiple computers should have been squashed.
Thirdly and most importantly, NTSL2+ can now talk to Integrated Electronics via the Subspace Transmitter Part.
when net.subscribe("channel"){print(message)} and net.message("channel", "contents") can be used for this.
This commit is contained in:
@@ -143,6 +143,7 @@
|
||||
var/data = get_pin_data(IC_INPUT, 1)
|
||||
if (data != null)
|
||||
var/chan = "[WP_ELECTRONICS][get_pin_data(IC_INPUT, 2) || "default"]"
|
||||
ntsl2.receive_subspace(chan, data)
|
||||
for (var/thing in GET_LISTENERS(chan))
|
||||
var/listener/L = thing
|
||||
var/obj/item/integrated_circuit/transfer/wireless/W = L.target
|
||||
|
||||
Reference in New Issue
Block a user