[MIRROR] Refactors how components are triggered and refactors how ports are ordered (#7951)

* Refactors how components are triggered and refactors how ports are ordered (#60934)

Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com>

* Refactors how components are triggered and refactors how ports are ordered

Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com>
This commit is contained in:
SkyratBot
2021-09-03 14:02:48 +01:00
committed by GitHub
co-authored by Watermelon914 Watermelon914
parent 94bc4b3a6a
commit af8c0d2977
76 changed files with 265 additions and 429 deletions
+1 -1
View File
@@ -38,7 +38,7 @@
/datum/circuit_variable/proc/set_value(new_value)
value = new_value
for(var/obj/item/circuit_component/component as anything in listeners)
TRIGGER_CIRCUIT_COMPONENT(component, null)
component.trigger_component()
/// Adds a listener to receive inputs when the variable has a value that is set.
/datum/circuit_variable/proc/add_listener(obj/item/circuit_component/to_add)