/tg/ Station 13 - Modules - TypesVar Details - Proc Details

weather_announcer

Component which makes you yell about what the weather is

Vars

enabledAre we actually turned on right now?
is_weather_dangerousWhether the incoming weather is actually going to harm you
state_dangerOverlay added when you are in danger
state_normalOverlay added when things are alright
state_warningOverlay added when you should start looking for shelter
warning_levelCurrently displayed warning level

Procs

get_warning_messageReturns a string we should display to communicate what you should be doing
on_power_lostIf no power, don't receive updates
on_poweredIf powered, receive updates
on_update_overlaysAdd appropriate overlays
set_current_alert_levelPolls existing weather for what kind of warnings we should be displaying.

Var Details

enabled

Are we actually turned on right now?

is_weather_dangerous

Whether the incoming weather is actually going to harm you

state_danger

Overlay added when you are in danger

state_normal

Overlay added when things are alright

state_warning

Overlay added when you should start looking for shelter

warning_level

Currently displayed warning level

Proc Details

get_warning_message

Returns a string we should display to communicate what you should be doing

on_power_lost

If no power, don't receive updates

on_powered

If powered, receive updates

on_update_overlays

Add appropriate overlays

set_current_alert_level

Polls existing weather for what kind of warnings we should be displaying.