Function overloads condensation (#18939)

Unified most of the procs into one definition, so there are no duplicate
around the codebase.
Marked some of the above as overridable if a good enough case can be
made for them (eg. external dependency or unlikely to be used).
This commit is contained in:
Fluffy
2024-04-19 21:19:41 +00:00
committed by GitHub
parent c59e636746
commit ab23fbdb70
186 changed files with 1006 additions and 1534 deletions
@@ -10,20 +10,6 @@
/datum/computer_file/program/update_layout()
return TRUE
/datum/computer_file/program/ui_interact(mob/user, datum/tgui/ui)
return computer.ui_interact(user, ui)
// We want to pass along any update requests to the computer, since the computer handles UI interaction, not us
/datum/computer_file/program/update_static_data(mob/user, datum/tgui/ui)
. = ..()
if(computer)
computer.update_static_data(user, ui)
/datum/computer_file/program/update_static_data_for_all_viewers()
. = ..()
if(computer)
computer.update_static_data_for_all_viewers()
/datum/nano_module/program
available_to_ai = FALSE
var/datum/computer_file/program/program // Program-Based computer program that runs this nano module. Defaults to null.