firealarm
Vars | |
buildstage | Buildstate for contruction steps |
---|---|
my_area | Our home area, set in Init. Due to loading step order, this seems to be null very early in the server setup process, which is why some procs use my_area? for var or list checks. |
soundloop | looping sound datum for our fire alarm siren. |
Procs | |
alarm | Sounds the fire alarm and closes all firelocks in the area. Also tells the area to color the lights red. |
check_security_level | Signal handler for checking if we should update fire alarm appearance accordingly to a newly set security level |
reset | Resets all firelocks in the area. Also tells the area to disable alarm lighting, if it was enabled. |
set_status | Sets the sound state, and then calls update_icon() |
Var Details
buildstage
Buildstate for contruction steps
my_area
Our home area, set in Init. Due to loading step order, this seems to be null very early in the server setup process, which is why some procs use my_area?
for var or list checks.
soundloop
looping sound datum for our fire alarm siren.
Proc Details
alarm
Sounds the fire alarm and closes all firelocks in the area. Also tells the area to color the lights red.
Arguments:
- mob/user is the user that pulled the alarm.
check_security_level
Signal handler for checking if we should update fire alarm appearance accordingly to a newly set security level
Arguments:
- source The datum source of the signal
- new_level The new security level that is in effect
reset
Resets all firelocks in the area. Also tells the area to disable alarm lighting, if it was enabled.
Arguments:
- mob/user is the user that reset the alarm.
set_status
Sets the sound state, and then calls update_icon()
This proc exists to be called by areas and firelocks so that it may update its icon and start or stop playing the alarm sound based on the state of an area variable.