Files
GS13NG/datum/controller/subsystem/materials.html
2025-02-05 06:19:18 +00:00

1 line
6.5 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/controller/subsystem/materials - /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="datum/controller/subsystem/materials.html#var">Var Details</a> - <a href="datum/controller/subsystem/materials.html#proc">Proc Details</a></header><main><h1>materials <aside>/<a href="datum.html">datum</a>/<a href="datum/controller/subsystem.html">controller/subsystem</a>/<a href="datum/controller/subsystem/materials.html">materials</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/subsystem/materials.dm#L8"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/materials.dm 8"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/controller/subsystem/materials.html#var/base_stack_recipes">base_stack_recipes</a></th><td>List of stackcrafting recipes for materials using base recipes</td></tr><tr><th><a href="datum/controller/subsystem/materials.html#var/material_combos">material_combos</a></th><td>A cache of all material combinations that have been used</td></tr><tr><th><a href="datum/controller/subsystem/materials.html#var/materials">materials</a></th><td>Dictionary of material.type || material ref</td></tr><tr><th><a href="datum/controller/subsystem/materials.html#var/materials_by_category">materials_by_category</a></th><td>Dictionary of category || list of material refs</td></tr><tr><th><a href="datum/controller/subsystem/materials.html#var/materialtypes_by_category">materialtypes_by_category</a></th><td>Dictionary of category || list of material types, mostly used by rnd machines like autolathes.</td></tr><tr><th><a href="datum/controller/subsystem/materials.html#var/rigid_stack_recipes">rigid_stack_recipes</a></th><td>List of stackcrafting recipes for materials using rigid recipes</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/controller/subsystem/materials.html#proc/FindOrCreateMaterialCombo">FindOrCreateMaterialCombo</a></th><td>Returns a list to be used as an object's custom_materials. Lists will be cached and re-used based on the parameters.</td></tr><tr><th><a href="datum/controller/subsystem/materials.html#proc/InitializeMaterials">InitializeMaterials</a></th><td>Ran on initialize, populated the materials and materials_by_category dictionaries with their appropiate vars (See these variables for more info)</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/base_stack_recipes"><aside class="declaration">var </aside>base_stack_recipes <aside> /list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/subsystem/materials.dm#L20"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/materials.dm 20"></a></h3><p>List of stackcrafting recipes for materials using base recipes</p><h3 id="var/material_combos"><aside class="declaration">var </aside>material_combos <aside> /list/list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/subsystem/materials.dm#L18"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/materials.dm 18"></a></h3><p>A cache of all material combinations that have been used</p><h3 id="var/materials"><aside class="declaration">var </aside>materials <aside> /list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/subsystem/materials.dm#L12"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/materials.dm 12"></a></h3><p>Dictionary of material.type || material ref</p><h3 id="var/materials_by_category"><aside class="declaration">var </aside>materials_by_category <aside> /list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/subsystem/materials.dm#L14"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/materials.dm 14"></a></h3><p>Dictionary of category || list of material refs</p><h3 id="var/materialtypes_by_category"><aside class="declaration">var </aside>materialtypes_by_category <aside> /list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/subsystem/materials.dm#L16"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/materials.dm 16"></a></h3><p>Dictionary of category || list of material types, mostly used by rnd machines like autolathes.</p><h3 id="var/rigid_stack_recipes"><aside class="declaration">var </aside>rigid_stack_recipes <aside> /list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/subsystem/materials.dm#L27"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/materials.dm 27"></a></h3><p>List of stackcrafting recipes for materials using rigid recipes</p><h2 id="proc">Proc Details</h2><h3 id="proc/FindOrCreateMaterialCombo"><aside class="declaration">proc </aside>FindOrCreateMaterialCombo<aside>(/list/materials_declaration, multiplier) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/subsystem/materials.dm#L54"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/materials.dm 54"></a></aside></h3><p>Returns a list to be used as an object's custom_materials. Lists will be cached and re-used based on the parameters.</p><h3 id="proc/InitializeMaterials"><aside class="declaration">proc </aside>InitializeMaterials<aside>() <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/subsystem/materials.dm#L32"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/materials.dm 32"></a></aside></h3><p>Ran on initialize, populated the materials and materials_by_category dictionaries with their appropiate vars (See these variables for more info)</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>