10 lines
2.6 KiB
HTML
10 lines
2.6 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/map_template - /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/map_template.html#proc">Proc Details</a></header><main><h1>map_template <aside>/<a href="datum.html">datum</a>/<a href="datum/map_template.html">map_template</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/mapping/map_template.dm#L1"><img src="git.png" width="16" height="16" title="code/modules/mapping/map_template.dm 1"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/map_template.html#proc/load">load</a></th><td>Proc to trigger a load at a specific area. Calls on_map_loaded(T.z, loaded_bounds) afterwards.</td></tr></table><h2 id="proc">Proc Details</h2><h3 id="proc/load"><aside class="declaration">proc </aside>load<aside>(/<a href="turf.html">turf</a>/T, centered, orientation, annihilate, force_cache, rotate_placement_to_orientation) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/mapping/map_template.dm#L126"><img src="git.png" width="16" height="16" title="code/modules/mapping/map_template.dm 126"></a></aside></h3><p>Proc to trigger a load at a specific area. Calls on_map_loaded(T.z, loaded_bounds) afterwards.</p>
|
|
<p>@params</p>
|
|
<ul>
|
|
<li>turf/T - Turf to load at</li>
|
|
<li>centered - Center at T or load with the bottomright corner being at T</li>
|
|
<li>orientation - SOUTH is default, anything else rotates the map to face it with the point of reference being the map itself is facing south by default. Cardinals only, don't be a 4head and put in multiple flags. It won't work or be pretty if you try.</li>
|
|
<li>annihilate - Should we destroy stuff in our bounds while loading</li>
|
|
<li>force_cache - Should we force the parsed shuttle to cache instead of being GC'd post loading if it wasn't going to be cached by default</li>
|
|
<li>rotate_placement_to_orientation - Has no effect if centered. Should we rotate where we load it around the turf we're loading at? Used for stuff like engine submaps when the station is rotated.</li>
|
|
</ul></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> |