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

relay

The relay idles until it receives information. It then passes on that information depending on where it came from.

The relay is needed in order to send information to different Z levels. It must be linked with a hub, the only other machine that can send to/receive from other Z levels.

Vars

broadcastingCan this relay broadcast signals to other Z levels?
receivingCan this relay receive signals from other Z levels?

Procs

can_listen_to_signalChecks to see if the relay can send/receive the signal, by checking if it's on, and if it's listening to the frequency of the signal.
can_receiveChecks to see if the relay can receive this signal, which requires it to have receiving set to TRUE.
can_sendChecks to see if the relay can send this signal, which requires it to have broadcasting set to TRUE.

Var Details

broadcasting

Can this relay broadcast signals to other Z levels?

receiving

Can this relay receive signals from other Z levels?

Proc Details

can_listen_to_signal

Checks to see if the relay can send/receive the signal, by checking if it's on, and if it's listening to the frequency of the signal.

Returns TRUE if it can listen to the signal, FALSE if not.

can_receive

Checks to see if the relay can receive this signal, which requires it to have receiving set to TRUE.

Returns TRUE if it can receive the signal, FALSE if not.

can_send

Checks to see if the relay can send this signal, which requires it to have broadcasting set to TRUE.

Returns TRUE if it can send the signal, FALSE if not.