weather_announcer
![code/datums/components/weatherannouncer.dm 6](git.png)
Component which makes you yell about what the weather is
Vars | |
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 |
Procs | |
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. |
Var Details
enabled
![code/datums/components/weatherannouncer.dm 12](git.png)
Are we actually turned on right now?
is_weather_dangerous
![code/datums/components/weatherannouncer.dm 10](git.png)
Whether the incoming weather is actually going to harm you
state_danger
![code/datums/components/weatherannouncer.dm 20](git.png)
Overlay added when you are in danger
state_normal
![code/datums/components/weatherannouncer.dm 14](git.png)
Overlay added when things are alright
state_warning
![code/datums/components/weatherannouncer.dm 16](git.png)
Overlay added when you should start looking for shelter
warning_level
![code/datums/components/weatherannouncer.dm 8](git.png)
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.