Files
GS13NG/obj/machinery/computer/communications.html
2025-02-05 06:19:18 +00:00

15 lines
11 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>/obj/machinery/computer/communications - /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="obj/machinery/computer/communications.html#var">Var Details</a> - <a href="obj/machinery/computer/communications.html#proc">Proc Details</a></header><main><h1>communications <aside>/<a href="obj.html">obj</a>/<a href="obj/machinery.html">machinery</a>/<a href="obj/machinery/computer/communications.html">computer/communications</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L10"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 10"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="obj/machinery/computer/communications.html#var/alert_level_tick">alert_level_tick</a></th><td>How many times the alert level has been changed
Used to clear the modal to change alert level</td></tr><tr><th><a href="obj/machinery/computer/communications.html#var/authorize_access">authorize_access</a></th><td>The access that the card had on login</td></tr><tr><th><a href="obj/machinery/computer/communications.html#var/authorize_name">authorize_name</a></th><td>The name of the user who logged in</td></tr><tr><th><a href="obj/machinery/computer/communications.html#var/cyborg_state">cyborg_state</a></th><td>The current state of the UI for AIs</td></tr><tr><th><a href="obj/machinery/computer/communications.html#var/important_action_cooldown">important_action_cooldown</a></th><td>Cooldown for important actions, such as messaging CentCom or other sectors</td></tr><tr><th><a href="obj/machinery/computer/communications.html#var/last_status_display">last_status_display</a></th><td>The last lines used for changing the status display</td></tr><tr><th><a href="obj/machinery/computer/communications.html#var/messages">messages</a></th><td>The messages this console has been sent</td></tr><tr><th><a href="obj/machinery/computer/communications.html#var/state">state</a></th><td>The current state of the UI</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="obj/machinery/computer/communications.html#proc/authenticated">authenticated</a></th><td>Are we a silicon, OR logged in?</td></tr><tr><th><a href="obj/machinery/computer/communications.html#proc/authenticated_as_non_silicon_captain">authenticated_as_non_silicon_captain</a></th><td>Are we NOT a silicon, AND we're logged in as the captain?</td></tr><tr><th><a href="obj/machinery/computer/communications.html#proc/authenticated_as_silicon_or_captain">authenticated_as_silicon_or_captain</a></th><td>Are we a silicon, OR we're logged in as the captain?</td></tr><tr><th><a href="obj/machinery/computer/communications.html#proc/can_buy_shuttles">can_buy_shuttles</a></th><td>Returns TRUE if the user can buy shuttles.
If they cannot, returns FALSE or a string detailing why.</td></tr><tr><th><a href="obj/machinery/computer/communications.html#proc/emergency_meeting">emergency_meeting</a></th><td>Call an emergency meeting</td></tr><tr><th><a href="obj/machinery/computer/communications.html#proc/has_communication">has_communication</a></th><td>Returns whether or not the communications console can communicate with the station</td></tr><tr><th><a href="obj/machinery/computer/communications.html#proc/override_cooldown">override_cooldown</a></th><td>Override the cooldown for special actions
Used in places such as CentCom messaging back so that the crew can answer right away</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/alert_level_tick"><aside class="declaration">var </aside>alert_level_tick <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L39"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 39"></a></h3><p>How many times the alert level has been changed
Used to clear the modal to change alert level</p><h3 id="var/authorize_access"><aside class="declaration">var </aside>authorize_access <aside> /list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L32"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 32"></a></h3><p>The access that the card had on login</p><h3 id="var/authorize_name"><aside class="declaration">var </aside>authorize_name <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L29"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 29"></a></h3><p>The name of the user who logged in</p><h3 id="var/cyborg_state"><aside class="declaration">var </aside>cyborg_state <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L26"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 26"></a></h3><p>The current state of the UI for AIs</p><h3 id="var/important_action_cooldown"><aside class="declaration">var </aside>important_action_cooldown <aside> /static</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L20"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 20"></a></h3><p>Cooldown for important actions, such as messaging CentCom or other sectors</p><h3 id="var/last_status_display"><aside class="declaration">var </aside>last_status_display <aside> /static</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L44"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 44"></a></h3><p>The last lines used for changing the status display</p><h3 id="var/messages"><aside class="declaration">var </aside>messages <aside> /list/datum/comm_message</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L35"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 35"></a></h3><p>The messages this console has been sent</p><h3 id="var/state"><aside class="declaration">var </aside>state <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L23"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 23"></a></h3><p>The current state of the UI</p><h2 id="proc">Proc Details</h2><h3 id="proc/authenticated"><aside class="declaration">proc </aside>authenticated<aside>(/<a href="mob.html">mob</a>/user) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L67"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 67"></a></aside></h3><p>Are we a silicon, OR logged in?</p><h3 id="proc/authenticated_as_non_silicon_captain"><aside class="declaration">proc </aside>authenticated_as_non_silicon_captain<aside>(/<a href="mob.html">mob</a>/user) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L50"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 50"></a></aside></h3><p>Are we NOT a silicon, AND we're logged in as the captain?</p><h3 id="proc/authenticated_as_silicon_or_captain"><aside class="declaration">proc </aside>authenticated_as_silicon_or_captain<aside>(/<a href="mob.html">mob</a>/user) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L61"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 61"></a></aside></h3><p>Are we a silicon, OR we're logged in as the captain?</p><h3 id="proc/can_buy_shuttles"><aside class="declaration">proc </aside>can_buy_shuttles<aside>(/<a href="mob.html">mob</a>/user) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L507"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 507"></a></aside></h3><p>Returns TRUE if the user can buy shuttles.
If they cannot, returns FALSE or a string detailing why.</p><h3 id="proc/emergency_meeting"><aside class="declaration">proc </aside>emergency_meeting<aside>(/<a href="mob.html">mob</a>/<a href="mob/living.html">living</a>/user) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L537"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 537"></a></aside></h3><p>Call an emergency meeting</p>
<p>Comm Console wrapper for the Communications subsystem wrapper for the call_emergency_meeting world proc.
Checks to make sure the proc can be called, and handles relevant feedback, logging and timing.
See the SScommunications proc definition for more detail, in short, teleports the entire crew to
the bridge for a meetup. Should only really happen during april fools.
Arguments:</p>
<ul>
<li>user - Mob who called the meeting</li>
</ul><h3 id="proc/has_communication"><aside class="declaration">proc </aside>has_communication<aside>() <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L494"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 494"></a></aside></h3><p>Returns whether or not the communications console can communicate with the station</p><h3 id="proc/override_cooldown"><aside class="declaration">proc </aside>override_cooldown<aside>() <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/computer/communications.dm#L584"><img src="git.png" width="16" height="16" title="code/game/machinery/computer/communications.dm 584"></a></aside></h3><p>Override the cooldown for special actions
Used in places such as CentCom messaging back so that the crew can answer right away</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>