3 lines
3.9 KiB
HTML
3 lines
3.9 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../../"><link rel="stylesheet" href="dmdoc.css"><title>code/controllers/subsystem/timer.dm - /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="code/controllers/subsystem/timer.html#define">Define Details</a></header><main><h1>code/controllers/subsystem/timer.dm <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/subsystem/timer.dm0"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/timer.dm0"></a></h1><table class="summary" cellspacing="0"><tr><th><a href="code/controllers/subsystem/timer.html#define/BUCKET_LEN">BUCKET_LEN</a></th><td>Controls how many buckets should be kept, each representing a tick. (1 minutes worth)</td></tr><tr><th><a href="code/controllers/subsystem/timer.html#define/BUCKET_POS">BUCKET_POS</a></th><td>Helper for getting the correct bucket for a given timer</td></tr><tr><th><a href="code/controllers/subsystem/timer.html#define/TIMER_MAX">TIMER_MAX</a></th><td>Gets the maximum time at which timers will be invoked from buckets, used for deferring to secondary queue</td></tr><tr><th><a href="code/controllers/subsystem/timer.html#define/TIMER_ID_MAX">TIMER_ID_MAX</a></th><td>Max float with integer precision</td></tr><tr><th>/var/<a href="global.html#var/SStimer">SStimer</a></th><td></td></tr><tr><th><a href="datum/timedevent.html">/datum/timedevent</a></th><td>This is the actual timer, it contains the callback and necessary data to maintain
|
|
the timer.</td></tr><tr><th>/proc/<a href="global.html#proc/_addtimer">_addtimer</a></th><td>Create a new timer and insert it in the queue.
|
|
You should not call this directly, and should instead use the addtimer macro, which includes source information.</td></tr><tr><th>/proc/<a href="global.html#proc/deltimer">deltimer</a></th><td>Delete a timer</td></tr><tr><th>/proc/<a href="global.html#proc/timeleft">timeleft</a></th><td>Get the remaining deciseconds on a timer</td></tr></table><h2 id="define">Define Details</h2><h3 id="define/BUCKET_LEN"><aside class="declaration">#define </aside>BUCKET_LEN <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/subsystem/timer.dm#L2"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/timer.dm 2"></a></h3><p>Controls how many buckets should be kept, each representing a tick. (1 minutes worth)</p><h3 id="define/BUCKET_POS"><aside class="declaration">#define </aside>BUCKET_POS<aside>(timer)</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/subsystem/timer.dm#L4"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/timer.dm 4"></a></h3><p>Helper for getting the correct bucket for a given timer</p><h3 id="define/TIMER_ID_MAX"><aside class="declaration">#define </aside>TIMER_ID_MAX <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/subsystem/timer.dm#L8"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/timer.dm 8"></a></h3><p>Max float with integer precision</p><h3 id="define/TIMER_MAX"><aside class="declaration">#define </aside>TIMER_MAX <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/subsystem/timer.dm#L6"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/timer.dm 6"></a></h3><p>Gets the maximum time at which timers will be invoked from buckets, used for deferring to secondary queue</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> |