Files
GS13NG/datum/element/bed_tuckable.html
2025-02-05 06:19:18 +00:00

5 lines
4.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/element/bed_tuckable - /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="datum/element/bed_tuckable.html#var">Var Details</a> - <a href="datum/element/bed_tuckable.html#proc">Proc Details</a></header><main><h1>bed_tuckable <aside>/<a href="datum.html">datum</a>/<a href="datum/element.html">element</a>/<a href="datum/element/bed_tuckable.html">bed_tuckable</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/elements/bed_tucking.dm#L2"><img src="git.png" width="16" height="16" title="code/datums/elements/bed_tucking.dm 2"></a></h1><p>Tucking element, for things that can be tucked into bed.</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/element/bed_tuckable.html#var/rotation_degree">rotation_degree</a></th><td>our rotation degree - how much the item turns when in bed (+degrees turns it more parallel)</td></tr><tr><th><a href="datum/element/bed_tuckable.html#var/x_offset">x_offset</a></th><td>our pixel_x offset - how much the item moves x when in bed (+x is closer to the pillow)</td></tr><tr><th><a href="datum/element/bed_tuckable.html#var/y_offset">y_offset</a></th><td>our pixel_y offset - how much the item move y when in bed (-y is closer to the middle)</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/element/bed_tuckable.html#proc/tuck_into_bed">tuck_into_bed</a></th><td>Tuck our object into bed.</td></tr><tr><th><a href="datum/element/bed_tuckable.html#proc/untuck">untuck</a></th><td>If we rotate our object, then we need to un-rotate it when it's picked up</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/rotation_degree"><aside class="declaration">var </aside>rotation_degree <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/elements/bed_tucking.dm#L10"><img src="git.png" width="16" height="16" title="code/datums/elements/bed_tucking.dm 10"></a></h3><p>our rotation degree - how much the item turns when in bed (+degrees turns it more parallel)</p><h3 id="var/x_offset"><aside class="declaration">var </aside>x_offset <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/elements/bed_tucking.dm#L6"><img src="git.png" width="16" height="16" title="code/datums/elements/bed_tucking.dm 6"></a></h3><p>our pixel_x offset - how much the item moves x when in bed (+x is closer to the pillow)</p><h3 id="var/y_offset"><aside class="declaration">var </aside>y_offset <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/elements/bed_tucking.dm#L8"><img src="git.png" width="16" height="16" title="code/datums/elements/bed_tucking.dm 8"></a></h3><p>our pixel_y offset - how much the item move y when in bed (-y is closer to the middle)</p><h2 id="proc">Proc Details</h2><h3 id="proc/tuck_into_bed"><aside class="declaration">proc </aside>tuck_into_bed<aside>(/<a href="obj.html">obj</a>/<a href="obj/item.html">item</a>/tucked, /<a href="obj.html">obj</a>/structure/bed/target_bed, /<a href="mob.html">mob</a>/<a href="mob/living.html">living</a>/tucker) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/elements/bed_tucking.dm#L33"><img src="git.png" width="16" height="16" title="code/datums/elements/bed_tucking.dm 33"></a></aside></h3><p>Tuck our object into bed.</p>
<p>tucked - the object being tucked
target_bed - the bed we're tucking them into
tucker - the guy doing the tucking</p><h3 id="proc/untuck"><aside class="declaration">proc </aside>untuck<aside>(/<a href="obj.html">obj</a>/<a href="obj/item.html">item</a>/tucked) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/elements/bed_tucking.dm#L56"><img src="git.png" width="16" height="16" title="code/datums/elements/bed_tucking.dm 56"></a></aside></h3><p>If we rotate our object, then we need to un-rotate it when it's picked up</p>
<p>tucked - the object that is tucked</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>