profectus-docs/assets/api_features_clickables_clickable_functions_setupAutoClick.md.CZKPm1Lu.js

1 line
2.6 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as a,c as t,a0 as c,o as r}from"./chunks/framework.P9qPzDnn.js";const h=JSON.parse('{"title":"Function: setupAutoClick()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/features/clickables/clickable/functions/setupAutoClick.md","filePath":"api/features/clickables/clickable/functions/setupAutoClick.md","lastUpdated":null}'),l={name:"api/features/clickables/clickable/functions/setupAutoClick.md"};function o(i,e,s,n,u,d){return r(),t("div",null,e[0]||(e[0]=[c('<p><a href="./../../../../">Profectus</a> / <a href="./../">features/clickables/clickable</a> / setupAutoClick</p><h1 id="function-setupautoclick" tabindex="-1">Function: setupAutoClick() <a class="header-anchor" href="#function-setupautoclick" aria-label="Permalink to &quot;Function: setupAutoClick()&quot;"></a></h1><blockquote><p><strong>setupAutoClick</strong>(<code>layer</code>, <code>clickable</code>, <code>autoActive</code>): <code>Unsubscribe</code></p></blockquote><p>Utility to auto click a clickable whenever it can be.</p><h2 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to &quot;Parameters&quot;"></a></h2><h3 id="layer" tabindex="-1">layer <a class="header-anchor" href="#layer" aria-label="Permalink to &quot;layer&quot;"></a></h3><p><a href="./../../../../game/layers/interfaces/BaseLayer"><code>BaseLayer</code></a></p><p>The layer the clickable is apart of</p><h3 id="clickable" tabindex="-1">clickable <a class="header-anchor" href="#clickable" aria-label="Permalink to &quot;clickable&quot;"></a></h3><p><code>Clickable</code></p><p>The clicker to click automatically</p><h3 id="autoactive" tabindex="-1">autoActive <a class="header-anchor" href="#autoactive" aria-label="Permalink to &quot;autoActive&quot;"></a></h3><p><a href="https://vuejs.org/api/utility-types.html#maybereforgetter" target="_blank" rel="noreferrer"><code>MaybeRefOrGetter</code></a>&lt;<code>boolean</code>&gt; = <code>true</code></p><p>Whether or not the clickable should currently be auto-clicking</p><h2 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to &quot;Returns&quot;"></a></h2><p><code>Unsubscribe</code></p><h2 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to &quot;Defined in&quot;"></a></h2><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/features/clickables/clickable.tsx#L124" target="_blank" rel="noreferrer">profectus/src/features/clickables/clickable.tsx:124</a></p>',18)]))}const k=a(l,[["render",o]]);export{h as __pageData,k as default};