1 line
10 KiB
HTML
1 line
10 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>/obj/machinery/modular_computer - /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/modular_computer.html#var">Var Details</a> - <a href="obj/machinery/modular_computer.html#proc">Proc Details</a></header><main><h1>modular_computer <aside>/<a href="obj.html">obj</a>/<a href="obj/machinery.html">machinery</a>/<a href="obj/machinery/modular_computer.html">modular_computer</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/modular_computers/computers/machinery/modular_computer.dm#L3"><img src="git.png" width="16" height="16" title="code/modules/modular_computers/computers/machinery/modular_computer.dm 3"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="obj/machinery/modular_computer.html#var/base_active_power_usage">base_active_power_usage</a></th><td>Power usage when the computer is open (screen is active) and can be interacted with. Remember hardware can use power too.</td></tr><tr><th><a href="obj/machinery/modular_computer.html#var/base_idle_power_usage">base_idle_power_usage</a></th><td>Power usage when the computer is idle and screen is off (currently only applies to laptops)</td></tr><tr><th><a href="obj/machinery/modular_computer.html#var/cpu">cpu</a></th><td>CPU that handles most logic while this type only handles power and other specific things.</td></tr><tr><th><a href="obj/machinery/modular_computer.html#var/hardware_flag">hardware_flag</a></th><td>A flag that describes this device type</td></tr><tr><th><a href="obj/machinery/modular_computer.html#var/icon_state_powered">icon_state_powered</a></th><td>Icon state when the computer is turned on.</td></tr><tr><th><a href="obj/machinery/modular_computer.html#var/icon_state_unpowered">icon_state_unpowered</a></th><td>Icon state when the computer is turned off.</td></tr><tr><th><a href="obj/machinery/modular_computer.html#var/last_power_usage">last_power_usage</a></th><td>Power usage during last tick</td></tr><tr><th><a href="obj/machinery/modular_computer.html#var/light_strength">light_strength</a></th><td>Light luminosity when turned on</td></tr><tr><th><a href="obj/machinery/modular_computer.html#var/max_hardware_size">max_hardware_size</a></th><td>Maximal hardware size. Currently, tablets have 1, laptops 2 and consoles 3. Limits what hardware types can be installed.</td></tr><tr><th><a href="obj/machinery/modular_computer.html#var/screen_icon_screensaver">screen_icon_screensaver</a></th><td>Icon state overlay when the computer is powered, but not 'switched on'.</td></tr><tr><th><a href="obj/machinery/modular_computer.html#var/screen_icon_state_menu">screen_icon_state_menu</a></th><td>Icon state overlay when the computer is turned on, but no program is loaded that would override the screen.</td></tr><tr><th><a href="obj/machinery/modular_computer.html#var/steel_sheet_cost">steel_sheet_cost</a></th><td>Amount of steel sheets refunded when disassembling an empty frame of this computer.</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="obj/machinery/modular_computer.html#proc/relay_icon_update">relay_icon_update</a></th><td>Eats the "source" arg because update_icon actually expects args now.</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/base_active_power_usage"><aside class="declaration">var </aside>base_active_power_usage <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/modular_computers/computers/machinery/modular_computer.dm#L36"><img src="git.png" width="16" height="16" title="code/modules/modular_computers/computers/machinery/modular_computer.dm 36"></a></h3><p>Power usage when the computer is open (screen is active) and can be interacted with. Remember hardware can use power too.</p><h3 id="var/base_idle_power_usage"><aside class="declaration">var </aside>base_idle_power_usage <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/modular_computers/computers/machinery/modular_computer.dm#L38"><img src="git.png" width="16" height="16" title="code/modules/modular_computers/computers/machinery/modular_computer.dm 38"></a></h3><p>Power usage when the computer is idle and screen is off (currently only applies to laptops)</p><h3 id="var/cpu"><aside class="declaration">var </aside>cpu <aside>– /<a href="obj.html">obj</a>/<a href="obj/item.html">item</a>/<a href="obj/item/modular_computer.html">modular_computer</a>/processor</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/modular_computers/computers/machinery/modular_computer.dm#L41"><img src="git.png" width="16" height="16" title="code/modules/modular_computers/computers/machinery/modular_computer.dm 41"></a></h3><p>CPU that handles most logic while this type only handles power and other specific things.</p><h3 id="var/hardware_flag"><aside class="declaration">var </aside>hardware_flag <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/modular_computers/computers/machinery/modular_computer.dm#L16"><img src="git.png" width="16" height="16" title="code/modules/modular_computers/computers/machinery/modular_computer.dm 16"></a></h3><p>A flag that describes this device type</p><h3 id="var/icon_state_powered"><aside class="declaration">var </aside>icon_state_powered <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/modular_computers/computers/machinery/modular_computer.dm#L24"><img src="git.png" width="16" height="16" title="code/modules/modular_computers/computers/machinery/modular_computer.dm 24"></a></h3><p>Icon state when the computer is turned on.</p><h3 id="var/icon_state_unpowered"><aside class="declaration">var </aside>icon_state_unpowered <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/modular_computers/computers/machinery/modular_computer.dm#L22"><img src="git.png" width="16" height="16" title="code/modules/modular_computers/computers/machinery/modular_computer.dm 22"></a></h3><p>Icon state when the computer is turned off.</p><h3 id="var/last_power_usage"><aside class="declaration">var </aside>last_power_usage <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/modular_computers/computers/machinery/modular_computer.dm#L18"><img src="git.png" width="16" height="16" title="code/modules/modular_computers/computers/machinery/modular_computer.dm 18"></a></h3><p>Power usage during last tick</p><h3 id="var/light_strength"><aside class="declaration">var </aside>light_strength <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/modular_computers/computers/machinery/modular_computer.dm#L34"><img src="git.png" width="16" height="16" title="code/modules/modular_computers/computers/machinery/modular_computer.dm 34"></a></h3><p>Light luminosity when turned on</p><h3 id="var/max_hardware_size"><aside class="declaration">var </aside>max_hardware_size <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/modular_computers/computers/machinery/modular_computer.dm#L30"><img src="git.png" width="16" height="16" title="code/modules/modular_computers/computers/machinery/modular_computer.dm 30"></a></h3><p>Maximal hardware size. Currently, tablets have 1, laptops 2 and consoles 3. Limits what hardware types can be installed.</p><h3 id="var/screen_icon_screensaver"><aside class="declaration">var </aside>screen_icon_screensaver <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/modular_computers/computers/machinery/modular_computer.dm#L28"><img src="git.png" width="16" height="16" title="code/modules/modular_computers/computers/machinery/modular_computer.dm 28"></a></h3><p>Icon state overlay when the computer is powered, but not 'switched on'.</p><h3 id="var/screen_icon_state_menu"><aside class="declaration">var </aside>screen_icon_state_menu <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/modular_computers/computers/machinery/modular_computer.dm#L26"><img src="git.png" width="16" height="16" title="code/modules/modular_computers/computers/machinery/modular_computer.dm 26"></a></h3><p>Icon state overlay when the computer is turned on, but no program is loaded that would override the screen.</p><h3 id="var/steel_sheet_cost"><aside class="declaration">var </aside>steel_sheet_cost <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/modular_computers/computers/machinery/modular_computer.dm#L32"><img src="git.png" width="16" height="16" title="code/modules/modular_computers/computers/machinery/modular_computer.dm 32"></a></h3><p>Amount of steel sheets refunded when disassembling an empty frame of this computer.</p><h2 id="proc">Proc Details</h2><h3 id="proc/relay_icon_update"><aside class="declaration">proc </aside>relay_icon_update<aside>(/<a href="datum.html">datum</a>/source, updates, updated) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/modular_computers/computers/machinery/modular_computer.dm#L90"><img src="git.png" width="16" height="16" title="code/modules/modular_computers/computers/machinery/modular_computer.dm 90"></a></aside></h3><p>Eats the "source" arg because update_icon actually expects args now.</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> |