mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-17 13:12:37 +00:00
* 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>
21 lines
539 B
Plaintext
21 lines
539 B
Plaintext
/**
|
|
* # Self Component
|
|
*
|
|
* Return the current shell.
|
|
*/
|
|
/obj/item/circuit_component/self
|
|
display_name = "Self"
|
|
desc = "A component that returns the current shell."
|
|
|
|
/// The shell this component is attached to.
|
|
var/datum/port/output/output
|
|
|
|
/obj/item/circuit_component/self/populate_ports()
|
|
output = add_output_port("Self", PORT_TYPE_ATOM)
|
|
|
|
/obj/item/circuit_component/self/register_shell(atom/movable/shell)
|
|
output.set_output(shell)
|
|
|
|
/obj/item/circuit_component/self/unregister_shell(atom/movable/shell)
|
|
output.set_output(null)
|