import{_ase,cast,oasa,Naso}from"./chunks/framework.0799945b.js";constu=JSON.parse('{"title":"Module: features/repeatable","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/features/repeatable.md","lastUpdated":null}'),l={name:"api/modules/features/repeatable.md"},r=o('<h1id="module-features-repeatable"tabindex="-1">Module:features/repeatable<aclass="header-anchor"href="#module-features-repeatable"aria-label="Permalink to "Module: features/repeatable""></a></h1><h2id="interfaces"tabindex="-1">Interfaces<aclass="header-anchor"href="#interfaces"aria-label="Permalinkto"Interfaces""></a></h2><h3id="baserepeatable"tabindex="-1">BaseRepeatable<aclass="header-anchor"href="#baserepeatable"aria-label="Permalinkto"BaseRepeatable""></a></h3><p>•<strong>BaseRepeatable</strong>:<code>Object</code></p><p>Thepropertiesthatareaddedontoaprocessed<ahref="./repeatable#repeatableoptions">RepeatableOptions</a>tocreatea<ahref="./repeatable#repeatable">Repeatable</a>.</p><table><thead><tr><thstyle="text-align:left;">Name</th><thstyle="text-align:left;">Type</th><thstyle="text-align:left;">Description</th></tr></thead><tbody><tr><tdstyle="text-align:left;"><code>[Component]</code></td><tdstyle="text-align:left;"><ahref="./feature#genericcomponent"><code>GenericComponent</code></a></td><tdstyle="text-align:left;">TheVuecomponentusedtorenderthisfeature.</td></tr><tr><tdstyle="text-align:left;"><code>[GatherProps]</code></td><tdstyle="text-align:left;">()=><ahref="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"target="_blank"rel="noreferrer"><code>Record</code></a><<code>string</code>,<code>unknown</code>></td><tdstyle="text-align:left;">Afunctiontogatherthepropsthevuecomponentrequiresforthisfeature.</td></tr><tr><tdstyle="text-align:left;"><code>amount</code></td><tdstyle="text-align:left;"><ahref="./../game/persistence#persistent"><code>Persistent</code></a><<ahref="./../lib/break_eternity#decimalsource"><code>DecimalSource</code></a>></td><tdstyle="text-align:left;">Thecurrentamountthisrepeatablehas.</td></tr><tr><tdstyle="text-align:left;"><code>amountToIncrease</code></td><tdstyle="text-align:left;"><code>Ref</code><<ahref="./../lib/break_eternity#decimalsource"><code>DecimalSource</code></a>></td><tdstyle="text-align:left;">Howmuchamountcanbeincreasedby,or1ifunclickable.Cappedat1if<ahref="./repeatable#maximize">maximize</a>isfalse.</td></tr><tr><tdstyle="text-align:left;"><code>canClick</code></td><tdstyle="text-align:left;"><ahref="./../util/computed#processedcomputable"><code>ProcessedComputable</code></a><<code>boolean</code>></td><tdstyle="text-align:left;">Whetherornotthisrepeatablecanbeclicked.</td></tr><tr><tdstyle="text-align:left;"><code>id</code></td><tdstyle="text-align:left;"><code>string</code></td><tdstyle="text-align:left;">Anauto-generatedIDforidentifyingfeaturesthatappearintheDOM.Willnotpersistbetweenrefreshesorupdates.</td></tr><tr><tdstyle="text-align:left;"><code>maxed</code></td><tdstyle="text-align:left;"><code>Ref</code><<code>boolean</code>></td><tdstyle="text-align:left;">Whetherornotthisrepeatable'samountisatit'slimit.</td></tr><tr><tdstyle="text-align:left;"><code>onClick</code></td><tdstyle="text-align:left;">(<code>event?</code>:<ahref="https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent"target="_blank"rel="noreferrer"><code>MouseEvent</code></a>|<ahref="https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent"target="_blank"rel="noreferrer"><code>TouchEvent</code></a>)=><code>void</code></td><tdstyle="text-align:left;">Afunctionthatgetscalledwhenthisrepeatableisclicked.</td></tr><tr><tdstyle="text-align:left;"><code>type</code></td><tdstyle="text-align:left;">typeof<ahref="./repeatable#repeatabletype"><code>RepeatableType</code></a></td><tdstyle="text-align:left;