Files

9 lines
3.7 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/asset/simple/namespaced - /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/asset/simple/namespaced.html#var">Var Details</a> - <a href="datum/asset/simple/namespaced.html#proc">Proc Details</a></header><main><h1>namespaced <aside>/<a href="datum.html">datum</a>/<a href="datum/asset.html">asset</a>/<a href="datum/asset/simple.html">simple</a>/<a href="datum/asset/simple/namespaced.html">namespaced</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/asset_cache/asset_list.dm#L324"><img src="git.png" width="16" height="16" title="code/modules/asset_cache/asset_list.dm 324"></a></h1><p>Namespace'ed assets (for static css and html files)
When sent over a cdn transport, all assets in the same asset datum will exist in the same folder, as their plain names.
Used to ensure css files can reference files by url() without having to generate the css at runtime, both the css file and the files it depends on must exist in the same namespace asset datum. (Also works for html)
For example <code>blah.css</code> with asset <code>blah.png</code> will get loaded as <code>namespaces/a3d..14f/f12..d3c.css</code> and <code>namespaces/a3d..14f/blah.png</code>. allowing the css file to load <code>blah.png</code> by a relative url rather then compute the generated url with get_url_mappings().
The namespace folder's name will change if any of the assets change. (excluding parent assets)</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/asset/simple/namespaced.html#var/parents">parents</a></th><td>parents - list of the parent asset or assets (in name = file assoicated format) for this namespace.
parent assets must be referenced by their generated url, but if an update changes a parent asset, it won't change the namespace's identity.</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/asset/simple/namespaced.html#proc/get_htmlloader">get_htmlloader</a></th><td>Get a html string that will load a html asset.
Needed because byond doesn't allow you to browse() to a url.</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/parents"><aside class="declaration">var </aside>parents <aside> /list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/asset_cache/asset_list.dm#L328"><img src="git.png" width="16" height="16" title="code/modules/asset_cache/asset_list.dm 328"></a></h3><p>parents - list of the parent asset or assets (in name = file assoicated format) for this namespace.
parent assets must be referenced by their generated url, but if an update changes a parent asset, it won't change the namespace's identity.</p><h2 id="proc">Proc Details</h2><h3 id="proc/get_htmlloader"><aside class="declaration">proc </aside>get_htmlloader<aside>(filename) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/asset_cache/asset_list.dm#L365"><img src="git.png" width="16" height="16" title="code/modules/asset_cache/asset_list.dm 365"></a></aside></h3><p>Get a html string that will load a html asset.
Needed because byond doesn't allow you to browse() to a url.</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>