module ![code/game/machinery/modular_shield.dm 383](git.png)
The general code used for machines that want to connect to the network
Vars | |
connected_node | The node we are connected to if we find one |
---|---|
connected_turf | This is the turf that we are facing and able to search for connections through |
shield_generator | The shield generator we are connected to if we find one or a node provides us one |
Procs | |
try_connect | checks for a valid machine in front of us and connects to it |
Var Details
connected_node ![code/game/machinery/modular_shield.dm 395](git.png)
The node we are connected to if we find one
connected_turf ![code/game/machinery/modular_shield.dm 400](git.png)
This is the turf that we are facing and able to search for connections through
shield_generator ![code/game/machinery/modular_shield.dm 392](git.png)
The shield generator we are connected to if we find one or a node provides us one
Proc Details
try_connect
checks for a valid machine in front of us and connects to it