Files

7 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>/datum/controller/subsystem/persistent_data - 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/controller/subsystem/persistent_data.html#var">Var Details</a> - <a href="datum/controller/subsystem/persistent_data.html#proc">Proc Details</a></header><main><h1>persistent_data <aside>/<a href="datum.html">datum</a>/<a href="datum/controller.html">controller</a>/<a href="datum/controller/subsystem.html">subsystem</a>/<a href="datum/controller/subsystem/persistent_data.html">persistent_data</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/controllers/subsystem/non_firing/SSpersistent_data.dm#L10"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/non_firing/SSpersistent_data.dm 10"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/controller/subsystem/persistent_data.html#var/data_saved">data_saved</a></th><td>Set to true after a the end of the round to prevent griefing being saved</td></tr><tr><th><a href="datum/controller/subsystem/persistent_data.html#var/registered_atoms">registered_atoms</a></th><td>List of atoms registered into the subsystem for persistent data storage. Can be anything at all</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/controller/subsystem/persistent_data.html#proc/register">register</a></th><td>Proc to register an atom with SSpersistent_data</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/data_saved"><aside class="declaration">var </aside>data_saved <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/controllers/subsystem/non_firing/SSpersistent_data.dm#L17"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/non_firing/SSpersistent_data.dm 17"></a></h3><p>Set to true after a the end of the round to prevent griefing being saved</p><h3 id="var/registered_atoms"><aside class="declaration">var </aside>registered_atoms <aside> /list</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/controllers/subsystem/non_firing/SSpersistent_data.dm#L15"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/non_firing/SSpersistent_data.dm 15"></a></h3><p>List of atoms registered into the subsystem for persistent data storage. Can be anything at all</p><h2 id="proc">Proc Details</h2><h3 id="proc/register"><aside class="declaration">proc </aside>register<aside>(/<a href="atom.html">atom</a>/A) <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/controllers/subsystem/non_firing/SSpersistent_data.dm#L47"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/non_firing/SSpersistent_data.dm 47"></a></aside></h3><p>Proc to register an atom with SSpersistent_data</p>
<p>This will add any provided atom to the list of registered atoms, and add it to the Initialization queue
If the system has already initialized, it calls persistent_load() at that moment</p>
<p>Arguments:</p>
<ul>
<li>A - Atom to register</li>
</ul></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/776b9861f70566b1e6a0763a465ef22f7920a3d6">776b986</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html>