mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
7 lines
7.4 KiB
HTML
7 lines
7.4 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../../"><link rel="stylesheet" href="dmdoc.css"><title>code/__DEFINES/dcs/dcs_flags.dm - 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="code/__DEFINES/dcs/dcs_flags.html#define">Define Details</a></header><main><h1>code/__DEFINES/dcs/dcs_flags.dm <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/dcs/dcs_flags.dm"><img src="git.png" width="16" height="16" title="code/__DEFINES/dcs/dcs_flags.dm"></a></h1><table class="summary" cellspacing="0"><tr><th><a href="code/__DEFINES/dcs/dcs_flags.html#define/COMPONENT_INCOMPATIBLE">COMPONENT_INCOMPATIBLE</a></th><td>Return this from <code>/datum/component/Initialize</code> or <code>datum/component/OnTransfer</code> to have the component be deleted if it's applied to an incorrect type.
|
|
<code>parent</code> must not be modified if this is to be returned.
|
|
This will be noted in the runtime logs</td></tr><tr><th><a href="code/__DEFINES/dcs/dcs_flags.html#define/COMPONENT_NOTRANSFER">COMPONENT_NOTRANSFER</a></th><td>Returned in PostTransfer to prevent transfer, similar to <code>COMPONENT_INCOMPATIBLE</code></td></tr><tr><th><a href="code/__DEFINES/dcs/dcs_flags.html#define/ELEMENT_INCOMPATIBLE">ELEMENT_INCOMPATIBLE</a></th><td>Return value to cancel attaching</td></tr><tr><th><a href="code/__DEFINES/dcs/dcs_flags.html#define/ELEMENT_DETACH_ON_HOST_DESTROY">ELEMENT_DETACH_ON_HOST_DESTROY</a></th><td>Causes the detach proc to be called when the host object is being deleted</td></tr><tr><th><a href="code/__DEFINES/dcs/dcs_flags.html#define/ELEMENT_BESPOKE">ELEMENT_BESPOKE</a></th><td>Only elements created with the same arguments given after <code>argument_hash_start_idx</code> share an element instance
|
|
The arguments are the same when the text and number values are the same and all other values have the same ref</td></tr><tr><th><a href="code/__DEFINES/dcs/dcs_flags.html#define/COMPONENT_DUPE_HIGHLANDER">COMPONENT_DUPE_HIGHLANDER</a></th><td>old component is deleted (default)</td></tr><tr><th><a href="code/__DEFINES/dcs/dcs_flags.html#define/COMPONENT_DUPE_ALLOWED">COMPONENT_DUPE_ALLOWED</a></th><td>duplicates allowed</td></tr><tr><th><a href="code/__DEFINES/dcs/dcs_flags.html#define/COMPONENT_DUPE_UNIQUE">COMPONENT_DUPE_UNIQUE</a></th><td>new component is deleted</td></tr><tr><th><a href="code/__DEFINES/dcs/dcs_flags.html#define/COMPONENT_DUPE_UNIQUE_PASSARGS">COMPONENT_DUPE_UNIQUE_PASSARGS</a></th><td>old component is given the initialization args of the new</td></tr><tr><th><a href="code/__DEFINES/dcs/dcs_flags.html#define/COMPONENT_DUPE_SELECTIVE">COMPONENT_DUPE_SELECTIVE</a></th><td>each component of the same type is consulted as to whether the duplicate should be allowed</td></tr></table><h2 id="define">Define Details</h2><h3 id="define/COMPONENT_DUPE_ALLOWED"><aside class="declaration">#define </aside>COMPONENT_DUPE_ALLOWED <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/dcs/dcs_flags.dm#L24"><img src="git.png" width="16" height="16" title="code/__DEFINES/dcs/dcs_flags.dm 24"></a></h3><p>duplicates allowed</p><h3 id="define/COMPONENT_DUPE_HIGHLANDER"><aside class="declaration">#define </aside>COMPONENT_DUPE_HIGHLANDER <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/dcs/dcs_flags.dm#L22"><img src="git.png" width="16" height="16" title="code/__DEFINES/dcs/dcs_flags.dm 22"></a></h3><p>old component is deleted (default)</p><h3 id="define/COMPONENT_DUPE_SELECTIVE"><aside class="declaration">#define </aside>COMPONENT_DUPE_SELECTIVE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/dcs/dcs_flags.dm#L30"><img src="git.png" width="16" height="16" title="code/__DEFINES/dcs/dcs_flags.dm 30"></a></h3><p>each component of the same type is consulted as to whether the duplicate should be allowed</p><h3 id="define/COMPONENT_DUPE_UNIQUE"><aside class="declaration">#define </aside>COMPONENT_DUPE_UNIQUE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/dcs/dcs_flags.dm#L26"><img src="git.png" width="16" height="16" title="code/__DEFINES/dcs/dcs_flags.dm 26"></a></h3><p>new component is deleted</p><h3 id="define/COMPONENT_DUPE_UNIQUE_PASSARGS"><aside class="declaration">#define </aside>COMPONENT_DUPE_UNIQUE_PASSARGS <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/dcs/dcs_flags.dm#L28"><img src="git.png" width="16" height="16" title="code/__DEFINES/dcs/dcs_flags.dm 28"></a></h3><p>old component is given the initialization args of the new</p><h3 id="define/COMPONENT_INCOMPATIBLE"><aside class="declaration">#define </aside>COMPONENT_INCOMPATIBLE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/dcs/dcs_flags.dm#L4"><img src="git.png" width="16" height="16" title="code/__DEFINES/dcs/dcs_flags.dm 4"></a></h3><p>Return this from <code>/datum/component/Initialize</code> or <code>datum/component/OnTransfer</code> to have the component be deleted if it's applied to an incorrect type.
|
|
<code>parent</code> must not be modified if this is to be returned.
|
|
This will be noted in the runtime logs</p><h3 id="define/COMPONENT_NOTRANSFER"><aside class="declaration">#define </aside>COMPONENT_NOTRANSFER <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/dcs/dcs_flags.dm#L6"><img src="git.png" width="16" height="16" title="code/__DEFINES/dcs/dcs_flags.dm 6"></a></h3><p>Returned in PostTransfer to prevent transfer, similar to <code>COMPONENT_INCOMPATIBLE</code></p><h3 id="define/ELEMENT_BESPOKE"><aside class="declaration">#define </aside>ELEMENT_BESPOKE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/dcs/dcs_flags.dm#L18"><img src="git.png" width="16" height="16" title="code/__DEFINES/dcs/dcs_flags.dm 18"></a></h3><p>Only elements created with the same arguments given after <code>argument_hash_start_idx</code> share an element instance
|
|
The arguments are the same when the text and number values are the same and all other values have the same ref</p><h3 id="define/ELEMENT_DETACH_ON_HOST_DESTROY"><aside class="declaration">#define </aside>ELEMENT_DETACH_ON_HOST_DESTROY <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/dcs/dcs_flags.dm#L13"><img src="git.png" width="16" height="16" title="code/__DEFINES/dcs/dcs_flags.dm 13"></a></h3><p>Causes the detach proc to be called when the host object is being deleted</p><h3 id="define/ELEMENT_INCOMPATIBLE"><aside class="declaration">#define </aside>ELEMENT_INCOMPATIBLE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/dcs/dcs_flags.dm#L9"><img src="git.png" width="16" height="16" title="code/__DEFINES/dcs/dcs_flags.dm 9"></a></h3><p>Return value to cancel attaching</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> |