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:
William Lemon
2020-04-25 23:43:24 +10:00
committed by GitHub
parent 5c08a085ec
commit aceffc62ed
5 changed files with 90 additions and 5 deletions
@@ -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