Files

1 line
4.1 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>/datum/element/rust - Space Station 13</title></head><body><header><a href="index.html">Space Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a><a href="datum/element/rust.html#var">Var Details</a> - <a href="datum/element/rust.html#proc">Proc Details</a></header><main><h1>rust <aside>/<a href="datum.html">datum</a>/<a href="datum/element.html">element</a>/<a href="datum/element/rust.html">rust</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/elements/rust_element.dm#L4"><img src="git.png" width="16" height="16" title="code/datums/elements/rust_element.dm 4"></a></h1><p>Adding this element to an atom will have it automatically render an overlay.</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/element/rust.html#var/rust_overlay">rust_overlay</a></th><td>The rust image itself, since the icon and icon state are only used as an argument</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/element/rust.html#proc/handle_tool_use">handle_tool_use</a></th><td>We call this from secondary_tool_act because we sleep with do_after</td></tr><tr><th><a href="datum/element/rust.html#proc/on_interaction">on_interaction</a></th><td>Prevents placing floor tiles on rusted turf</td></tr><tr><th><a href="datum/element/rust.html#proc/welder_tool_act">welder_tool_act</a></th><td>Because do_after sleeps we register the signal here and defer via an async call</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/rust_overlay"><aside class="declaration">var </aside>rust_overlay <aside> /image</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/elements/rust_element.dm#L8"><img src="git.png" width="16" height="16" title="code/datums/elements/rust_element.dm 8"></a></h3><p>The rust image itself, since the icon and icon state are only used as an argument</p><h2 id="proc">Proc Details</h2><h3 id="proc/handle_tool_use"><aside class="declaration">proc </aside>handle_tool_use<aside>(/<a href="atom.html">atom</a>/source, /<a href="obj.html">obj</a>/<a href="obj/item.html">item</a>/item, /<a href="mob.html">mob</a>/user) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/elements/rust_element.dm#L53"><img src="git.png" width="16" height="16" title="code/datums/elements/rust_element.dm 53"></a></aside></h3><p>We call this from secondary_tool_act because we sleep with do_after</p><h3 id="proc/on_interaction"><aside class="declaration">proc </aside>on_interaction<aside>(/<a href="datum.html">datum</a>/source, /<a href="mob.html">mob</a>/<a href="mob/living.html">living</a>/user, /<a href="obj.html">obj</a>/<a href="obj/item.html">item</a>/tool, /list/modifiers) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/elements/rust_element.dm#L67"><img src="git.png" width="16" height="16" title="code/datums/elements/rust_element.dm 67"></a></aside></h3><p>Prevents placing floor tiles on rusted turf</p><h3 id="proc/welder_tool_act"><aside class="declaration">proc </aside>welder_tool_act<aside>(/<a href="atom.html">atom</a>/source, /<a href="obj.html">obj</a>/<a href="obj/item.html">item</a>/item, /<a href="mob.html">mob</a>/user) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/elements/rust_element.dm#L46"><img src="git.png" width="16" height="16" title="code/datums/elements/rust_element.dm 46"></a></aside></h3><p>Because do_after sleeps we register the signal here and defer via an async call</p></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/8a8a00a2a9bec485351e5f219982b7315d3504fa">8a8a00a</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html>