mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
PDAs are dead, long live PDAs. All trace of old PDAs has been scoured from the codebase, and in its place are modular computer PDAs that are feature-equivalent. Essentially every PDA function except the Syndicate detonation feature and Notepad has been ported over, and battery life for handheld computers has been boosted alongside the addition of charging cables to make things easier.
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
// Events are sent to the program by the computer.
|
|
// Always include a parent call when overriding an event.
|
|
|
|
// Called when the ID card is removed from computer. ID is removed AFTER this proc.
|
|
/datum/computer_file/program/proc/event_idremoved(var/background)
|
|
return
|
|
|
|
/datum/computer_file/program/proc/event_silentmode(var/background)
|
|
return
|
|
|
|
// Called when an ID is unregistered from the device.
|
|
/datum/computer_file/program/proc/event_unregistered(var/background)
|
|
return
|
|
|
|
// Called when the computer fails due to power loss. Override when program wants to specifically react to power loss.
|
|
/datum/computer_file/program/proc/event_powerfailure(var/background)
|
|
kill_program(TRUE)
|
|
|
|
// Called when the network connectivity fails. Computer does necessary checks and only calls this when requires_ntnet_feature and similar variables are not met.
|
|
/datum/computer_file/program/proc/event_networkfailure(var/background)
|
|
kill_program(TRUE)
|
|
if(background)
|
|
computer.output_error(FONT_SMALL(SPAN_WARNING("Process [filename].[filetype] (PID [rand(100,999)]) terminated - Network Error")))
|
|
else
|
|
computer.output_error(FONT_SMALL(SPAN_WARNING("NETWORK ERROR - NTNet connection lost. Please retry. If problem persists contact your system administrator."))) |