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

ntnet

Vars

childrenNetwork children. Associated list using the network_node_id of the child as the key
linked_devicesAll the devices on this branch of the network
network_idThe full network name for this network ex. SS13.ATMOS.SCRUBBERS
network_node_idThe network name part of this leaf ex ATMOS
networksThis lists has all the networks in this node. Each name is fully qualified ie. SS13.ATMOS.SCRUBBERS, SS13.ATMOS.VENTS, etc
parentParrnt of the network. If this is null, we are a oot network
root_devicesAll devices on this network. ALL devices on this network, not just this branch. This list is shared between all leaf networks so we don't have to keep going to the parents on lookups. It is an associated list of hardware_id AND tag_id's

Procs

DestroyA network should NEVER be deleted. If you don't want to show it exists just check if its empty
add_interfaceAdd this interface to this branch of the network.
find_interfacePlease no recursion. Byond hates recursion
remove_interfaceIf we are doing a hard jump to a new network, log it

Var Details

children

Network children. Associated list using the network_node_id of the child as the key

linked_devices

All the devices on this branch of the network

network_id

The full network name for this network ex. SS13.ATMOS.SCRUBBERS

network_node_id

The network name part of this leaf ex ATMOS

networks

This lists has all the networks in this node. Each name is fully qualified ie. SS13.ATMOS.SCRUBBERS, SS13.ATMOS.VENTS, etc

parent

Parrnt of the network. If this is null, we are a oot network

root_devices

All devices on this network. ALL devices on this network, not just this branch. This list is shared between all leaf networks so we don't have to keep going to the parents on lookups. It is an associated list of hardware_id AND tag_id's

Proc Details

Destroy

A network should NEVER be deleted. If you don't want to show it exists just check if its empty

add_interface

Add this interface to this branch of the network.

This will add a network interface to this branch of the network. If the interface already exists on the network it will add it and give the alias list in the interface this branch name. If the interface has an id_tag it will add that name to the root_devices for map lookup

Arguments:

find_interface

Please no recursion. Byond hates recursion

remove_interface

If we are doing a hard jump to a new network, log it