mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
3 lines
3.2 KiB
HTML
3 lines
3.2 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/component/connect_mob_behalf - 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/component/connect_mob_behalf.html#var">Var Details</a></header><main><h1>connect_mob_behalf <aside>/<a href="datum.html">datum</a>/<a href="datum/component.html">component</a>/<a href="datum/component/connect_mob_behalf.html">connect_mob_behalf</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/connect_mob_behalf.dm#L4"><img src="git.png" width="16" height="16" title="code/datums/components/connect_mob_behalf.dm 4"></a></h1><p>This component behaves similar to connect_loc_behalf, but working off clients and mobs instead of loc
|
||
To be clear, we hook into a signal on a tracked client's mob
|
||
We retain the ability to react to that signal on a seperate listener, which makes this quite powerful</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/component/connect_mob_behalf.html#var/connections">connections</a></th><td>An assoc list of signal -> procpath to register to the mob our client "owns"</td></tr><tr><th><a href="datum/component/connect_mob_behalf.html#var/tracked">tracked</a></th><td>The master client we're working with</td></tr><tr><th><a href="datum/component/connect_mob_behalf.html#var/tracked_mob">tracked_mob</a></th><td>The mob we're currently tracking</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/connections"><aside class="declaration">var </aside>connections <aside>– /list</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/connect_mob_behalf.dm#L8"><img src="git.png" width="16" height="16" title="code/datums/components/connect_mob_behalf.dm 8"></a></h3><p>An assoc list of signal -> procpath to register to the mob our client "owns"</p><h3 id="var/tracked"><aside class="declaration">var </aside>tracked <aside>– /<a href="client.html">client</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/connect_mob_behalf.dm#L10"><img src="git.png" width="16" height="16" title="code/datums/components/connect_mob_behalf.dm 10"></a></h3><p>The master client we're working with</p><h3 id="var/tracked_mob"><aside class="declaration">var </aside>tracked_mob <aside>– /<a href="mob.html">mob</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/connect_mob_behalf.dm#L12"><img src="git.png" width="16" height="16" title="code/datums/components/connect_mob_behalf.dm 12"></a></h3><p>The mob we're currently tracking</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> |