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

tram_controller

The physical cabinet on the tram. Acts as the interface between players and the controller datum.

Vars

cover_lockedIf the cover is locked
cover_openIf the cover is open

Procs

find_controllerFind the controller associated with the transport module the cabinet is sitting on.
post_machine_initializeMapped or built tram cabinet isn't located on a transport module.
sync_controllerSince the machinery obj is a dumb terminal for the controller datum, sync the display with the status bitfield of the tram
try_fix_machineCheck if the tram was malfunctioning due to the random event, and if so end the event on repair.
update_overlaysUpdate the blinky lights based on the controller status, allowing to quickly check without opening up the cabinet.

Var Details

cover_locked

If the cover is locked

cover_open

If the cover is open

Proc Details

find_controller

Find the controller associated with the transport module the cabinet is sitting on.

post_machine_initialize

Mapped or built tram cabinet isn't located on a transport module.

sync_controller

Since the machinery obj is a dumb terminal for the controller datum, sync the display with the status bitfield of the tram

try_fix_machine

Check if the tram was malfunctioning due to the random event, and if so end the event on repair.

update_overlays

Update the blinky lights based on the controller status, allowing to quickly check without opening up the cabinet.