Adds a Datum port type for Admin Circuits (#61582)

Admin circuit components were limited in their utility due to the setvar, getvar, proccall, and signal handler components only being able to operate on atoms. I have improved them by adding the datum datatype, which is used exclusively by the aforementioned components in place of the atom datatype their target port currently uses. Furthermore, an option for the expected output type has been added to the getvar and proccall components. This option defaults to any.
This commit is contained in:
Y0SH1M4S73R
2021-09-22 03:04:05 -04:00
committed by GitHub
parent 9dcd253199
commit b7ed43d7a8
8 changed files with 47 additions and 6 deletions

View File

@@ -69,8 +69,8 @@
if(entity)
remove_output_port(entity)
target = add_input_port("Target", PORT_TYPE_ATOM, order = 1, trigger = null)
entity = add_output_port("Source Entity", PORT_TYPE_ATOM, order = 0)
target = add_input_port("Target", PORT_TYPE_DATUM, order = 1, trigger = null)
entity = add_output_port("Source Entity", PORT_TYPE_DATUM, order = 0)
/obj/item/circuit_component/signal_handler/save_data_to_list(list/component_data)
. = ..()