mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 20:11:04 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user