Files
2025-02-05 06:19:18 +00:00

1 line
4.3 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../../../"><link rel="stylesheet" href="dmdoc.css"><title>/obj/effect/mapping_helpers/network_builder/power_cable - /tg/ Station 13</title></head><body><header><a href="index.html">/tg/ Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a><a href="obj/effect/mapping_helpers/network_builder/power_cable.html#var">Var Details</a> - <a href="obj/effect/mapping_helpers/network_builder/power_cable.html#proc">Proc Details</a></header><main><h1>power_cable <aside>/<a href="obj.html">obj</a>/<a href="obj/effect/mapping_helpers/network_builder.html">effect/mapping_helpers/network_builder</a>/<a href="obj/effect/mapping_helpers/network_builder/power_cable.html">power_cable</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/mapping/mapping_helpers/network_builder/power_cables.dm#L6"><img src="git.png" width="16" height="16" title="code/modules/mapping/mapping_helpers/network_builder/power_cables.dm 6"></a></h1><p>Automatically links on init to power cables and other cable builder helpers. Only supports cardinals.</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="obj/effect/mapping_helpers/network_builder/power_cable.html#var/cable_color">cable_color</a></th><td>cable color as from GLOB.cable_colors</td></tr><tr><th><a href="obj/effect/mapping_helpers/network_builder/power_cable.html#var/knot">knot</a></th><td>Whether or not we forcefully make a knot</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="obj/effect/mapping_helpers/network_builder/power_cable.html#proc/build_network">build_network</a></th><td>Directions should only ever have cardinals.</td></tr><tr><th><a href="obj/effect/mapping_helpers/network_builder/power_cable.html#proc/scan_directions">scan_directions</a></th><td>Scans directions, sets network_directions to have every direction that we can link to. If there's another power cable builder detected, make sure they know we're here by adding us to their cable directions list before we're deleted.</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/cable_color"><aside class="declaration">var </aside>cable_color <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/mapping/mapping_helpers/network_builder/power_cables.dm#L16"><img src="git.png" width="16" height="16" title="code/modules/mapping/mapping_helpers/network_builder/power_cables.dm 16"></a></h3><p>cable color as from GLOB.cable_colors</p><h3 id="var/knot"><aside class="declaration">var </aside>knot <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/mapping/mapping_helpers/network_builder/power_cables.dm#L13"><img src="git.png" width="16" height="16" title="code/modules/mapping/mapping_helpers/network_builder/power_cables.dm 13"></a></h3><p>Whether or not we forcefully make a knot</p><h2 id="proc">Proc Details</h2><h3 id="proc/build_network">build_network<aside>() <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/mapping/mapping_helpers/network_builder/power_cables.dm#L48"><img src="git.png" width="16" height="16" title="code/modules/mapping/mapping_helpers/network_builder/power_cables.dm 48"></a></aside></h3><p>Directions should only ever have cardinals.</p><h3 id="proc/scan_directions">scan_directions<aside>() <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/mapping/mapping_helpers/network_builder/power_cables.dm#L28"><img src="git.png" width="16" height="16" title="code/modules/mapping/mapping_helpers/network_builder/power_cables.dm 28"></a></aside></h3><p>Scans directions, sets network_directions to have every direction that we can link to. If there's another power cable builder detected, make sure they know we're here by adding us to their cable directions list before we're deleted.</p></main><footer>tgstation.dme <a href="https://github.com/evilew/GS13-Citadel/tree/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e">e8e0068</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.9.0</a></footer></body></html>