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

telecomms

The basic telecomms machinery type, implementing all of the logic that's shared between all of the telecomms machinery.

Vars

autolinkerslist of text/number values to link with
banned_frequenciesIllegal frequencies that can't be listened to by telecommunication servers.
hideIs it a hidden machine?
ididentification string
linkslist of machines this machine is linked to
links_by_telecomms_typeassociative lazylist list of the telecomms_type of linked telecomms machines and a list of said machines. eg list(telecomms_type1 = list(everything linked to us with that type), telecomms_type2 = list(everything linked to us with THAT type)...)
long_range_linkCan you link it across Z levels or on the otherside of the map? (Relay & Hub)
netspeedhow much traffic to lose per second (50 gigabytes/second * netspeed)
networkthe network of the machinery
onIs it actually active or not?
soundloopLooping sounds for any servers
telecomms_typethe relevant type path of this telecomms machine eg /obj/machinery/telecomms/server but not server/preset. used for links_by_telecomms_type
tempfreqThe current temporary frequency used to add new filtered frequencies options.
toggledIs it toggled on, so is it /meant/ to be active?
trafficvalue increases as traffic increases

Procs

add_actWrapper for adding another time of action for ui_act(), rather than having you override ui_act yourself.
add_automatic_linkHandles the automatic linking of another machine to this one.
add_new_linkAdds new_connection to src's links list AND vice versa. Also updates links_by_telecomms_type.
add_optionWrapper for adding additional options to a machine's interface.
de_empHandles the machine stopping being affected by an EMP.
get_multitoolReturns a multitool from a user depending on their mobtype.
is_freq_listeningChecks whether the machinery is listening to that signal.
receive_informationReceive information from linked machinery
relay_direct_informationSends a signal directly to a machine.
relay_informationrelay signal to all linked machinery that are of type [filter]. If signal has been sent [amount] times, stop sending
remove_linkRemoves old_connection from src's links list AND vice versa. Also updates links_by_telecomms_type.
update_powerHandles updating the power state of the machine, modifying its on variable based on if it's toggled and if it's either broken, has no power or it's EMP'd. Handles updating appearance based on that power change.

Var Details

autolinkers

list of text/number values to link with

banned_frequencies

Illegal frequencies that can't be listened to by telecommunication servers.

hide

Is it a hidden machine?

id

identification string

list of machines this machine is linked to

associative lazylist list of the telecomms_type of linked telecomms machines and a list of said machines. eg list(telecomms_type1 = list(everything linked to us with that type), telecomms_type2 = list(everything linked to us with THAT type)...)

Can you link it across Z levels or on the otherside of the map? (Relay & Hub)

netspeed

how much traffic to lose per second (50 gigabytes/second * netspeed)

network

the network of the machinery

on

Is it actually active or not?

soundloop

Looping sounds for any servers

telecomms_type

the relevant type path of this telecomms machine eg /obj/machinery/telecomms/server but not server/preset. used for links_by_telecomms_type

tempfreq

The current temporary frequency used to add new filtered frequencies options.

toggled

Is it toggled on, so is it /meant/ to be active?

traffic

value increases as traffic increases

Proc Details

add_act

Wrapper for adding another time of action for ui_act(), rather than having you override ui_act yourself.

Returns TRUE if the action was handled, nothing if not.

Handles the automatic linking of another machine to this one.

Adds new_connection to src's links list AND vice versa. Also updates links_by_telecomms_type.

add_option

Wrapper for adding additional options to a machine's interface.

Returns a list, or null if it wasn't implemented by the machine.

de_emp

Handles the machine stopping being affected by an EMP.

get_multitool

Returns a multitool from a user depending on their mobtype.

is_freq_listening

Checks whether the machinery is listening to that signal.

Returns TRUE if found, FALSE if not.

receive_information

Receive information from linked machinery

relay_direct_information

Sends a signal directly to a machine.

relay_information

relay signal to all linked machinery that are of type [filter]. If signal has been sent [amount] times, stop sending

Removes old_connection from src's links list AND vice versa. Also updates links_by_telecomms_type.

update_power

Handles updating the power state of the machine, modifying its on variable based on if it's toggled and if it's either broken, has no power or it's EMP'd. Handles updating appearance based on that power change.