Yogstation 13 - Modules - TypesProc Details

/datum/computer_file/program/supermatter_monitor

Procs

clear_signalsRemoves the signal listener for Supermatter delaminations from the selected supermatter.
send_alertSends an SM delam alert to the computer.
send_start_alertSends an SM delam start alert to the computer.
set_signalsSets up the signal listener for Supermatter delaminations.

Proc Details

clear_signals

Removes the signal listener for Supermatter delaminations from the selected supermatter.

Pretty much does what it says.

send_alert

Sends an SM delam alert to the computer.

Triggered by a signal from the selected supermatter, this proc sends a notification to the computer if the program is either closed or minimized. We do not send these notifications to the comptuer if we're the active program, because engineers fixing the supermatter probably don't need constant beeping to distract them.

send_start_alert

Sends an SM delam start alert to the computer.

Triggered by a signal from the selected supermatter at the start of a delamination, this proc sends a notification to the computer if this program is the active one. We do this so that people carrying a tablet with NT CIMS open but with the NTOS window closed will still get one audio alert. This is not sent to computers with the program minimized or closed to avoid double-notifications.

set_signals

Sets up the signal listener for Supermatter delaminations.

Unregisters any old listners for SM delams, and then registers one for the SM refered to in the active variable. This proc is also used with no active SM to simply clear the signal and exit.