mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
[MIRROR] Pulls apart the vestiges of components still hanging onto signals [MDB IGNORE] (#21738)
* Pulls apart the vestiges of components still hanging onto signals * update modular --------- Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com>
This commit is contained in:
co-authored by
LemonInTheDark
Tom
parent
da5da42a18
commit
6dfe17306c
@@ -45,9 +45,9 @@
|
||||
/// 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)
|
||||
listeners += to_add
|
||||
RegisterSignal(to_add, COMSIG_PARENT_QDELETING, PROC_REF(on_listener_qdel))
|
||||
RegisterSignal(to_add, COMSIG_QDELETING, PROC_REF(on_listener_qdel))
|
||||
|
||||
/// Removes a listener to receive inputs when the variable has a value that is set. Listener will usually clean themselves up
|
||||
/datum/circuit_variable/proc/remove_listener(obj/item/circuit_component/to_remove)
|
||||
UnregisterSignal(to_remove, COMSIG_PARENT_QDELETING)
|
||||
UnregisterSignal(to_remove, COMSIG_QDELETING)
|
||||
listeners -= to_remove
|
||||
|
||||
Reference in New Issue
Block a user