mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
13 lines
7.8 KiB
HTML
13 lines
7.8 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/admins - 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/admins.html#var">Var Details</a> - <a href="datum/admins.html#proc">Proc Details</a></header><main><h1>admins <aside>/<a href="datum.html">datum</a>/<a href="datum/admins.html">admins</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/admin/holder2.dm#L12"><img src="git.png" width="16" height="16" title="code/modules/admin/holder2.dm 12"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/admins.html#var/href_token">href_token</a></th><td>Unique-to-session randomly generated token given to each admin to help add detail to logs on admin interactions with hrefs</td></tr><tr><th><a href="datum/admins.html#var/is_localhost_autoadmin">is_localhost_autoadmin</a></th><td>Was this auto-created for someone connecting from localhost?</td></tr><tr><th><a href="datum/admins.html#var/marked_datum">marked_datum</a></th><td>Our currently linked marked datum</td></tr><tr><th><a href="datum/admins.html#var/restricted_by_2fa">restricted_by_2fa</a></th><td>Tracks if their permissions have been reduced due to a lack of 2fa.</td></tr><tr><th><a href="datum/admins.html#var/rights">rights</a></th><td>Bitflag containing the current rights this admin holder is assigned to</td></tr><tr><th><a href="datum/admins.html#var/team_switch_tab_index">team_switch_tab_index</a></th><td>Our index into GLOB.antagonist_teams, so that admins can have pretty tabs in the Check Teams menu.</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/admins.html#proc/ccbdb_lookup_callback">ccbdb_lookup_callback</a></th><td>CCBDB Lookup Callback</td></tr><tr><th><a href="datum/admins.html#proc/check_teams">check_teams</a></th><td>Opens a window which lists the teams for the round.</td></tr><tr><th><a href="datum/admins.html#proc/create_ccbdb_lookup">create_ccbdb_lookup</a></th><td>CCBDB Lookup Initiator</td></tr><tr><th><a href="datum/admins.html#proc/list_teams">list_teams</a></th><td>Returns HTML content for the "check teams" window.</td></tr><tr><th><a href="datum/admins.html#proc/modify_traits">modify_traits</a></th><td>Allow admin to add or remove traits of datum</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/href_token"><aside class="declaration">var </aside>href_token <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/admin/holder2.dm#L27"><img src="git.png" width="16" height="16" title="code/modules/admin/holder2.dm 27"></a></h3><p>Unique-to-session randomly generated token given to each admin to help add detail to logs on admin interactions with hrefs</p><h3 id="var/is_localhost_autoadmin"><aside class="declaration">var </aside>is_localhost_autoadmin <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/admin/holder2.dm#L21"><img src="git.png" width="16" height="16" title="code/modules/admin/holder2.dm 21"></a></h3><p>Was this auto-created for someone connecting from localhost?</p><h3 id="var/marked_datum"><aside class="declaration">var </aside>marked_datum <aside>– /<a href="datum.html">datum</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/admin/holder2.dm#L30"><img src="git.png" width="16" height="16" title="code/modules/admin/holder2.dm 30"></a></h3><p>Our currently linked marked datum</p><h3 id="var/restricted_by_2fa"><aside class="declaration">var </aside>restricted_by_2fa <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/admin/holder2.dm#L19"><img src="git.png" width="16" height="16" title="code/modules/admin/holder2.dm 19"></a></h3><p>Tracks if their permissions have been reduced due to a lack of 2fa.</p><h3 id="var/rights"><aside class="declaration">var </aside>rights <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/admin/holder2.dm#L17"><img src="git.png" width="16" height="16" title="code/modules/admin/holder2.dm 17"></a></h3><p>Bitflag containing the current rights this admin holder is assigned to</p><h3 id="var/team_switch_tab_index"><aside class="declaration">var </aside>team_switch_tab_index <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/admin/holder2.dm#L33"><img src="git.png" width="16" height="16" title="code/modules/admin/holder2.dm 33"></a></h3><p>Our index into GLOB.antagonist_teams, so that admins can have pretty tabs in the Check Teams menu.</p><h2 id="proc">Proc Details</h2><h3 id="proc/ccbdb_lookup_callback"><aside class="declaration">proc </aside>ccbdb_lookup_callback<aside>(/<a href="mob.html">mob</a>/user, ckey, /<a href="datum.html">datum</a>/<a href="datum/http_response.html">http_response</a>/response) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/admin/centcom_ban_db.dm#L37"><img src="git.png" width="16" height="16" title="code/modules/admin/centcom_ban_db.dm 37"></a></aside></h3><p>CCBDB Lookup Callback</p>
|
||
<p>Callback assigned in <a href="datum/admins.html#proc/create_ccbdb_lookup" title="/datum/admins">/datum/admins/proc/create_ccbdb_lookup</a> for async operations without a sleep()</p>
|
||
<p>Arguments:</p>
|
||
<ul>
|
||
<li>user - Mob calling the lookup so the UI can be opened</li>
|
||
<li>ckey - Ckey being looked up</li>
|
||
<li>response - <a href="datum/http_response.html" title="/datum/http_response">/datum/http_response</a> passed through from [SShttp]</li>
|
||
</ul><h3 id="proc/check_teams"><aside class="declaration">proc </aside>check_teams<aside>() <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/antagonists/_common/antag_team.dm#L383"><img src="git.png" width="16" height="16" title="code/modules/antagonists/_common/antag_team.dm 383"></a></aside></h3><p>Opens a window which lists the teams for the round.</p><h3 id="proc/create_ccbdb_lookup"><aside class="declaration">proc </aside>create_ccbdb_lookup<aside>(ckey) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/admin/centcom_ban_db.dm#L15"><img src="git.png" width="16" height="16" title="code/modules/admin/centcom_ban_db.dm 15"></a></aside></h3><p>CCBDB Lookup Initiator</p>
|
||
<p>Checks the configuration before invoking the request to the CCBDB server.</p>
|
||
<p>Arguments:</p>
|
||
<ul>
|
||
<li>ckey - ckey to be looked up</li>
|
||
</ul><h3 id="proc/list_teams"><aside class="declaration">proc </aside>list_teams<aside>() <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/antagonists/_common/antag_team.dm#L395"><img src="git.png" width="16" height="16" title="code/modules/antagonists/_common/antag_team.dm 395"></a></aside></h3><p>Returns HTML content for the "check teams" window.</p><h3 id="proc/modify_traits"><aside class="declaration">proc </aside>modify_traits<aside>(/<a href="datum.html">datum</a>/D) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/admin/verbs/modify_traits.dm#L2"><img src="git.png" width="16" height="16" title="code/modules/admin/verbs/modify_traits.dm 2"></a></aside></h3><p>Allow admin to add or remove traits of datum</p></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/8a8a00a2a9bec485351e5f219982b7315d3504fa">8a8a00a</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html> |