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

3 lines
7.9 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/nanite_program - /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/nanite_program.html#var">Var Details</a> - <a href="datum/nanite_program.html#proc">Proc Details</a></header><main><h1>nanite_program <aside>/<a href="datum.html">datum</a>/<a href="datum/nanite_program.html">nanite_program</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/research/nanites/nanite_programs.dm#L1"><img src="git.png" width="16" height="16" title="code/modules/research/nanites/nanite_programs.dm 1"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/nanite_program.html#var/corruptable">corruptable</a></th><td>Corruptable - able to have code/configuration changed</td></tr><tr><th><a href="datum/nanite_program.html#var/error_flicking">error_flicking</a></th><td>error flicking - able to be randomly toggled by errors</td></tr><tr><th><a href="datum/nanite_program.html#var/extra_settings">extra_settings</a></th><td>Don't ever override this or I will come to your house and stand menacingly behind a bush</td></tr><tr><th><a href="datum/nanite_program.html#var/immutable">immutable</a></th><td>immutable - cannot be overwritten by other programs</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/nanite_program.html#proc/copy_extra_settings_to">copy_extra_settings_to</a></th><td>Copy of the list instead of direct reference for obvious reasons</td></tr><tr><th><a href="datum/nanite_program.html#proc/get_extra_setting_value">get_extra_setting_value</a></th><td>You probably shouldn't be overriding this one, but I'm not a cop.</td></tr><tr><th><a href="datum/nanite_program.html#proc/get_extra_settings_frontend">get_extra_settings_frontend</a></th><td>Used for getting information about the extra settings to the frontend</td></tr><tr><th><a href="datum/nanite_program.html#proc/is_permanent">is_permanent</a></th><td>Checks if we're a permanent program</td></tr><tr><th><a href="datum/nanite_program.html#proc/register_extra_settings">register_extra_settings</a></th><td>Register extra settings by overriding this.
extra_settings[name] = new typepath() for each extra setting</td></tr><tr><th><a href="datum/nanite_program.html#proc/self_destruct">self_destruct</a></th><td>Attempts to destroy ourselves</td></tr><tr><th><a href="datum/nanite_program.html#proc/set_extra_setting">set_extra_setting</a></th><td>You can override this if you need to have special behavior after setting certain settings.</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/corruptable"><aside class="declaration">var </aside>corruptable <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/research/nanites/nanite_programs.dm#L59"><img src="git.png" width="16" height="16" title="code/modules/research/nanites/nanite_programs.dm 59"></a></h3><p>Corruptable - able to have code/configuration changed</p><h3 id="var/error_flicking"><aside class="declaration">var </aside>error_flicking <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/research/nanites/nanite_programs.dm#L61"><img src="git.png" width="16" height="16" title="code/modules/research/nanites/nanite_programs.dm 61"></a></h3><p>error flicking - able to be randomly toggled by errors</p><h3 id="var/extra_settings"><aside class="declaration">var </aside>extra_settings <aside> /final/list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/research/nanites/nanite_programs.dm#L51"><img src="git.png" width="16" height="16" title="code/modules/research/nanites/nanite_programs.dm 51"></a></h3><p>Don't ever override this or I will come to your house and stand menacingly behind a bush</p><h3 id="var/immutable"><aside class="declaration">var </aside>immutable <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/research/nanites/nanite_programs.dm#L63"><img src="git.png" width="16" height="16" title="code/modules/research/nanites/nanite_programs.dm 63"></a></h3><p>immutable - cannot be overwritten by other programs</p><h2 id="proc">Proc Details</h2><h3 id="proc/copy_extra_settings_to"><aside class="declaration">proc </aside>copy_extra_settings_to<aside>(/<a href="datum.html">datum</a>/<a href="datum/nanite_program.html">nanite_program</a>/target) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/research/nanites/nanite_programs.dm#L144"><img src="git.png" width="16" height="16" title="code/modules/research/nanites/nanite_programs.dm 144"></a></aside></h3><p>Copy of the list instead of direct reference for obvious reasons</p><h3 id="proc/get_extra_setting_value"><aside class="declaration">proc </aside>get_extra_setting_value<aside>(setting) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/research/nanites/nanite_programs.dm#L131"><img src="git.png" width="16" height="16" title="code/modules/research/nanites/nanite_programs.dm 131"></a></aside></h3><p>You probably shouldn't be overriding this one, but I'm not a cop.</p><h3 id="proc/get_extra_settings_frontend"><aside class="declaration">proc </aside>get_extra_settings_frontend<aside>() <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/research/nanites/nanite_programs.dm#L136"><img src="git.png" width="16" height="16" title="code/modules/research/nanites/nanite_programs.dm 136"></a></aside></h3><p>Used for getting information about the extra settings to the frontend</p><h3 id="proc/is_permanent"><aside class="declaration">proc </aside>is_permanent<aside>() <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/research/nanites/nanite_programs.dm#L88"><img src="git.png" width="16" height="16" title="code/modules/research/nanites/nanite_programs.dm 88"></a></aside></h3><p>Checks if we're a permanent program</p><h3 id="proc/register_extra_settings"><aside class="declaration">proc </aside>register_extra_settings<aside>() <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/research/nanites/nanite_programs.dm#L122"><img src="git.png" width="16" height="16" title="code/modules/research/nanites/nanite_programs.dm 122"></a></aside></h3><p>Register extra settings by overriding this.
extra_settings[name] = new typepath() for each extra setting</p><h3 id="proc/self_destruct"><aside class="declaration">proc </aside>self_destruct<aside>() <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/research/nanites/nanite_programs.dm#L337"><img src="git.png" width="16" height="16" title="code/modules/research/nanites/nanite_programs.dm 337"></a></aside></h3><p>Attempts to destroy ourselves</p><h3 id="proc/set_extra_setting"><aside class="declaration">proc </aside>set_extra_setting<aside>(setting, value) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/research/nanites/nanite_programs.dm#L126"><img src="git.png" width="16" height="16" title="code/modules/research/nanites/nanite_programs.dm 126"></a></aside></h3><p>You can override this if you need to have special behavior after setting certain settings.</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>