Files
GS13NG/obj/machinery/seed_extractor.html
2025-02-05 06:19:18 +00:00

16 lines
3.6 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/machinery/seed_extractor - /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/machinery/seed_extractor.html#var">Var Details</a> - <a href="obj/machinery/seed_extractor.html#proc">Proc Details</a></header><main><h1>seed_extractor <aside>/<a href="obj.html">obj</a>/<a href="obj/machinery.html">machinery</a>/<a href="obj/machinery/seed_extractor.html">seed_extractor</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/hydroponics/seed_extractor.dm#L57"><img src="git.png" width="16" height="16" title="code/modules/hydroponics/seed_extractor.dm 57"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="obj/machinery/seed_extractor.html#var/piles">piles</a></th><td>Associated list of seeds, they are all weak refs. We check the len to see how many refs we have for each</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="obj/machinery/seed_extractor.html#proc/add_seed">add_seed</a></th><td></td></tr><tr><th><a href="obj/machinery/seed_extractor.html#proc/generate_seed_string">generate_seed_string</a></th><td>Generate seed string</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/piles"><aside class="declaration">var </aside>piles <aside> /list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/hydroponics/seed_extractor.dm#L66"><img src="git.png" width="16" height="16" title="code/modules/hydroponics/seed_extractor.dm 66"></a></h3><p>Associated list of seeds, they are all weak refs. We check the len to see how many refs we have for each</p><h2 id="proc">Proc Details</h2><h3 id="proc/add_seed"><aside class="declaration">proc </aside>add_seed<aside>(/<a href="obj.html">obj</a>/<a href="obj/item.html">item</a>/<a href="obj/item/seeds.html">seeds</a>/O) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/hydroponics/seed_extractor.dm#L142"><img src="git.png" width="16" height="16" title="code/modules/hydroponics/seed_extractor.dm 142"></a></aside></h3><ul>
<li>
<p>Add Seeds Proc.</p>
<ul>
<li>Adds the seeds to the contents and to an associated list that pregenerates the data</li>
<li>needed to go to the ui handler</li>
</ul>
</li>
</ul><h3 id="proc/generate_seed_string"><aside class="declaration">proc </aside>generate_seed_string<aside>(/<a href="obj.html">obj</a>/<a href="obj/item.html">item</a>/<a href="obj/item/seeds.html">seeds</a>/O) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/hydroponics/seed_extractor.dm#L132"><img src="git.png" width="16" height="16" title="code/modules/hydroponics/seed_extractor.dm 132"></a></aside></h3><p>Generate seed string</p>
<p>Creates a string based of the traits of a seed. We use this string as a bucket for all
seeds that match as well as the key the ui uses to get the seed. We also use the key
for the data shown in the ui. Javascript parses this string to display</p>
<p>Arguments:</p>
<ul>
<li>O - seed to generate the string from</li>
</ul></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>