Files

1 line
5.3 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../../"><link rel="stylesheet" href="dmdoc.css"><title>code/controllers/configuration/__config_defines.dm - 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="code/controllers/configuration/__config_defines.html#define">Define Details</a></header><main><h1>code/controllers/configuration/__config_defines.dm <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/configuration/__config_defines.dm"><img src="git.png" width="16" height="16" title="code/controllers/configuration/__config_defines.dm"></a></h1><table class="summary" cellspacing="0"><tr><th><a href="code/controllers/configuration/__config_defines.html#define/CONFIG_LOAD_BOOL">CONFIG_LOAD_BOOL</a></th><td>Wrapper to not overwrite a variable if a list key doesnt exist. Auto casts to bools.</td></tr><tr><th><a href="code/controllers/configuration/__config_defines.html#define/CONFIG_LOAD_NUM">CONFIG_LOAD_NUM</a></th><td>Wrapper to not overwrite a variable if a list key doesnt exist. Auto casts to number.</td></tr><tr><th><a href="code/controllers/configuration/__config_defines.html#define/CONFIG_LOAD_NUM_MULT">CONFIG_LOAD_NUM_MULT</a></th><td>Wrapper to not overwrite a variable if a list key doesnt exist. Auto casts to number, and accepts a macro argument for number maths (ds to min for example)</td></tr><tr><th><a href="code/controllers/configuration/__config_defines.html#define/CONFIG_LOAD_STR">CONFIG_LOAD_STR</a></th><td>Wrapper to not overwrite a variable if a list key doesnt exist. Auto casts to string.</td></tr><tr><th><a href="code/controllers/configuration/__config_defines.html#define/CONFIG_LOAD_RAW">CONFIG_LOAD_RAW</a></th><td>Wrapper to not overwrite a variable if a list key doesnt exist. No casting done.</td></tr><tr><th><a href="code/controllers/configuration/__config_defines.html#define/CONFIG_LOAD_LIST">CONFIG_LOAD_LIST</a></th><td>Wrapper to not overwrite a variable if a list key doesnt exist. Ensures target is a list.</td></tr></table><h2 id="define">Define Details</h2><h3 id="define/CONFIG_LOAD_BOOL"><aside class="declaration">#define </aside>CONFIG_LOAD_BOOL<aside>(target, input)</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/configuration/__config_defines.dm#L6"><img src="git.png" width="16" height="16" title="code/controllers/configuration/__config_defines.dm 6"></a></h3><p>Wrapper to not overwrite a variable if a list key doesnt exist. Auto casts to bools.</p><h3 id="define/CONFIG_LOAD_LIST"><aside class="declaration">#define </aside>CONFIG_LOAD_LIST<aside>(target, input)</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/configuration/__config_defines.dm#L36"><img src="git.png" width="16" height="16" title="code/controllers/configuration/__config_defines.dm 36"></a></h3><p>Wrapper to not overwrite a variable if a list key doesnt exist. Ensures target is a list.</p><h3 id="define/CONFIG_LOAD_NUM"><aside class="declaration">#define </aside>CONFIG_LOAD_NUM<aside>(target, input)</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/configuration/__config_defines.dm#L12"><img src="git.png" width="16" height="16" title="code/controllers/configuration/__config_defines.dm 12"></a></h3><p>Wrapper to not overwrite a variable if a list key doesnt exist. Auto casts to number.</p><h3 id="define/CONFIG_LOAD_NUM_MULT"><aside class="declaration">#define </aside>CONFIG_LOAD_NUM_MULT<aside>(target, input, multiplier)</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/configuration/__config_defines.dm#L18"><img src="git.png" width="16" height="16" title="code/controllers/configuration/__config_defines.dm 18"></a></h3><p>Wrapper to not overwrite a variable if a list key doesnt exist. Auto casts to number, and accepts a macro argument for number maths (ds to min for example)</p><h3 id="define/CONFIG_LOAD_RAW"><aside class="declaration">#define </aside>CONFIG_LOAD_RAW<aside>(target, input)</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/configuration/__config_defines.dm#L30"><img src="git.png" width="16" height="16" title="code/controllers/configuration/__config_defines.dm 30"></a></h3><p>Wrapper to not overwrite a variable if a list key doesnt exist. No casting done.</p><h3 id="define/CONFIG_LOAD_STR"><aside class="declaration">#define </aside>CONFIG_LOAD_STR<aside>(target, input)</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/configuration/__config_defines.dm#L24"><img src="git.png" width="16" height="16" title="code/controllers/configuration/__config_defines.dm 24"></a></h3><p>Wrapper to not overwrite a variable if a list key doesnt exist. Auto casts to string.</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>