mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
[MIRROR] Adds an admin signal handler circuit component (#8218)
* Adds an admin signal handler circuit component * Update FundamentalTypes.js Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
This commit is contained in:
co-authored by
Watermelon914
Gandalf
parent
9269849f62
commit
c302124fd5
@@ -10,11 +10,17 @@
|
||||
/// The shell this component is attached to.
|
||||
var/datum/port/output/output
|
||||
|
||||
/// The signal sent when the status is updated.
|
||||
var/datum/port/output/shell_received
|
||||
|
||||
/obj/item/circuit_component/self/populate_ports()
|
||||
output = add_output_port("Self", PORT_TYPE_ATOM)
|
||||
output = add_output_port("Shell", PORT_TYPE_ATOM)
|
||||
shell_received = add_output_port("Shell Updated", PORT_TYPE_SIGNAL)
|
||||
|
||||
/obj/item/circuit_component/self/register_shell(atom/movable/shell)
|
||||
output.set_output(shell)
|
||||
shell_received.set_output(COMPONENT_SIGNAL)
|
||||
|
||||
/obj/item/circuit_component/self/unregister_shell(atom/movable/shell)
|
||||
output.set_output(null)
|
||||
shell_received.set_output(COMPONENT_SIGNAL)
|
||||
|
||||
Reference in New Issue
Block a user