Space Station 13 - Modules - TypesVar Details - Proc Details

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

activeIs the machine active
ionHas the machine been hit by an ionospheric anomaly
network_idNetwork ID used for names + auto linkage

Procs

DestroyBase Destructor
InitializeBase Initializer
crowbar_actCrowbar Act Handler
end_ionEnd of Ion Anomaly Event
log_actionLogging helper
onTransitZZ-Level transit change helper
power_changePower Change Handler
screwdriver_actScrewdriver Act Handler
start_ionStart of Ion Anomaly Event
update_icon_stateIcon 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:

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.