mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 14:07:51 +01:00
1 line
7.0 KiB
HTML
1 line
7.0 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/light_source - 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/light_source.html#var">Var Details</a> - <a href="datum/light_source.html#proc">Proc Details</a></header><main><h1>light_source <aside>/<a href="datum.html">datum</a>/<a href="datum/light_source.html">light_source</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/modules/lighting/lighting_source.dm#L4"><img src="git.png" width="16" height="16" title="code/modules/lighting/lighting_source.dm 4"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/light_source.html#var/applied">applied</a></th><td>Whether we have applied our light yet or not.</td></tr><tr><th><a href="datum/light_source.html#var/effect_str">effect_str</a></th><td>List used to store how much we're affecting corners.</td></tr><tr><th><a href="datum/light_source.html#var/light_color">light_color</a></th><td>The colour of the light, string, decomposed by parse_light_color()</td></tr><tr><th><a href="datum/light_source.html#var/light_power">light_power</a></th><td>Intensity of the emitter light.</td></tr><tr><th><a href="datum/light_source.html#var/light_range">light_range</a></th><td>The range of the emitted light.</td></tr><tr><th><a href="datum/light_source.html#var/needs_update">needs_update</a></th><td>Whether we are queued for an update.</td></tr><tr><th><a href="datum/light_source.html#var/pixel_turf">pixel_turf</a></th><td>The turf the top_atom appears to over.</td></tr><tr><th><a href="datum/light_source.html#var/source_atom">source_atom</a></th><td>The atom that we belong to.</td></tr><tr><th><a href="datum/light_source.html#var/source_turf">source_turf</a></th><td>The turf under the above.</td></tr><tr><th><a href="datum/light_source.html#var/top_atom">top_atom</a></th><td>The atom we're emitting light from (for example a mob if we're from a flashlight that's being held).</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/light_source.html#proc/remove_lum">remove_lum</a></th><td>This is the define used to calculate falloff.</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/applied"><aside class="declaration">var </aside>applied <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/modules/lighting/lighting_source.dm#L35"><img src="git.png" width="16" height="16" title="code/modules/lighting/lighting_source.dm 35"></a></h3><p>Whether we have applied our light yet or not.</p><h3 id="var/effect_str"><aside class="declaration">var </aside>effect_str <aside>– /list/<a href="datum.html">datum</a>/<a href="datum/lighting_corner.html">lighting_corner</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/modules/lighting/lighting_source.dm#L32"><img src="git.png" width="16" height="16" title="code/modules/lighting/lighting_source.dm 32"></a></h3><p>List used to store how much we're affecting corners.</p><h3 id="var/light_color"><aside class="declaration">var </aside>light_color <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/modules/lighting/lighting_source.dm#L19"><img src="git.png" width="16" height="16" title="code/modules/lighting/lighting_source.dm 19"></a></h3><p>The colour of the light, string, decomposed by parse_light_color()</p><h3 id="var/light_power"><aside class="declaration">var </aside>light_power <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/modules/lighting/lighting_source.dm#L15"><img src="git.png" width="16" height="16" title="code/modules/lighting/lighting_source.dm 15"></a></h3><p>Intensity of the emitter light.</p><h3 id="var/light_range"><aside class="declaration">var </aside>light_range <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/modules/lighting/lighting_source.dm#L17"><img src="git.png" width="16" height="16" title="code/modules/lighting/lighting_source.dm 17"></a></h3><p>The range of the emitted light.</p><h3 id="var/needs_update"><aside class="declaration">var </aside>needs_update <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/modules/lighting/lighting_source.dm#L38"><img src="git.png" width="16" height="16" title="code/modules/lighting/lighting_source.dm 38"></a></h3><p>Whether we are queued for an update.</p><h3 id="var/pixel_turf"><aside class="declaration">var </aside>pixel_turf <aside>– /<a href="turf.html">turf</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/modules/lighting/lighting_source.dm#L13"><img src="git.png" width="16" height="16" title="code/modules/lighting/lighting_source.dm 13"></a></h3><p>The turf the top_atom appears to over.</p><h3 id="var/source_atom"><aside class="declaration">var </aside>source_atom <aside>– /<a href="atom.html">atom</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/modules/lighting/lighting_source.dm#L8"><img src="git.png" width="16" height="16" title="code/modules/lighting/lighting_source.dm 8"></a></h3><p>The atom that we belong to.</p><h3 id="var/source_turf"><aside class="declaration">var </aside>source_turf <aside>– /<a href="turf.html">turf</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/modules/lighting/lighting_source.dm#L11"><img src="git.png" width="16" height="16" title="code/modules/lighting/lighting_source.dm 11"></a></h3><p>The turf under the above.</p><h3 id="var/top_atom"><aside class="declaration">var </aside>top_atom <aside>– /<a href="atom.html">atom</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/modules/lighting/lighting_source.dm#L6"><img src="git.png" width="16" height="16" title="code/modules/lighting/lighting_source.dm 6"></a></h3><p>The atom we're emitting light from (for example a mob if we're from a flashlight that's being held).</p><h2 id="proc">Proc Details</h2><h3 id="proc/remove_lum"><aside class="declaration">proc </aside>remove_lum<aside>() <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/modules/lighting/lighting_source.dm#L144"><img src="git.png" width="16" height="16" title="code/modules/lighting/lighting_source.dm 144"></a></aside></h3><p>This is the define used to calculate falloff.</p></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> |