mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 14:07:51 +01:00
3 lines
3.4 KiB
HTML
3 lines
3.4 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/component/drift - 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/component/drift.html#var">Var Details</a> - <a href="datum/component/drift.html#proc">Proc Details</a></header><main><h1>drift <aside>/<a href="datum.html">datum</a>/<a href="datum/component.html">component</a>/<a href="datum/component/drift.html">drift</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/datums/components/drift.dm#L4"><img src="git.png" width="16" height="16" title="code/datums/components/drift.dm 4"></a></h1><p>Component that handles drifting
|
|
Manages a movement loop that actually does the legwork of moving someone
|
|
Alongside dealing with the post movement input blocking required to make things look nice</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/component/drift.html#var/delayed">delayed</a></th><td>Have we been delayed? IE: active, but not working right this second?</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/component/drift.html#proc/Initialize">Initialize</a></th><td>Accepts three args. The direction to drift in, if the drift is instant or not, and if it's not instant, the delay on the start</td></tr><tr><th><a href="datum/component/drift.html#proc/stopped_pulling">stopped_pulling</a></th><td>If we're pulling something and stop, we want it to continue at our rate and such</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/delayed"><aside class="declaration">var </aside>delayed <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/datums/components/drift.dm#L9"><img src="git.png" width="16" height="16" title="code/datums/components/drift.dm 9"></a></h3><p>Have we been delayed? IE: active, but not working right this second?</p><h2 id="proc">Proc Details</h2><h3 id="proc/Initialize"><aside class="parent"><a title="/datum/component" href="datum/component.html#proc/Initialize">↑</a></aside>Initialize<aside>(direction, instant, start_delay) <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/datums/components/drift.dm#L13"><img src="git.png" width="16" height="16" title="code/datums/components/drift.dm 13"></a></aside></h3><p>Accepts three args. The direction to drift in, if the drift is instant or not, and if it's not instant, the delay on the start</p><h3 id="proc/stopped_pulling"><aside class="declaration">proc </aside>stopped_pulling<aside>(/<a href="datum.html">datum</a>/source, /<a href="atom.html">atom</a>/<a href="atom/movable.html">movable</a>/was_pulling) <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/datums/components/drift.dm#L141"><img src="git.png" width="16" height="16" title="code/datums/components/drift.dm 141"></a></aside></h3><p>If we're pulling something and stop, we want it to continue at our rate and such</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> |