Telecommunications Device
This is the base machine for both tcomms devices (core + relay)
This holds a few base procs (Icon updates, enable/disable, etc) It also has the initial overrides for Initialize() and Destroy()
Vars | |
active | Is the machine active |
---|---|
ion | Has the machine been hit by an ionospheric anomaly |
network_id | Network ID used for names + auto linkage |
Procs | |
Destroy | Base Destructor |
Initialize | Base Initializer |
crowbar_act | Crowbar Act Handler |
end_ion | End of Ion Anomaly Event |
log_action | Logging helper |
onTransitZ | Z-Level transit change helper |
power_change | Power Change Handler |
screwdriver_act | Screwdriver Act Handler |
start_ion | Start of Ion Anomaly Event |
update_icon_state | Icon Updater |
Var Details
active
Is the machine active
ion
Has the machine been hit by an ionospheric anomaly
network_id
Network ID used for names + auto linkage
Proc Details
Destroy
Base Destructor
Ensures that the machine is taken out of the global list when destroyed
Initialize
Base Initializer
Ensures that the machine is put into the global list of tcomms devices, and then its made sure that the icon is correct if the machine starts offline
crowbar_act
Crowbar Act Handler
Handles the crowbar action for all tcomms machines, so they can be deconstructed
end_ion
End of Ion Anomaly Event
Proc to easily stop an Ion Anomaly's effects, and update the icon
log_action
Logging helper
Proc which allows easy logging of changs made to tcomms machines Arguments:
- user - The user who did the action
- msg - The log message
- adminmsg - Should an admin log be sent when this happens
onTransitZ
Z-Level transit change helper
Proc to make sure you cant have two of these active on a Z-level at once. It also makes sure to update the linkage
power_change
Power Change Handler
Proc which ensures icons are updated when machines lose power
screwdriver_act
Screwdriver Act Handler
Handles the screwdriver action for all tcomms machines, so they can be open and closed to be deconstructed
start_ion
Start of Ion Anomaly Event
Proc to easily start an Ion Anomaly's effects, and update the icon
update_icon_state
Icon Updater
Ensures that the icon updates properly based on if the machine is active or not. This removes the need for this check in many other places.