import{_ as a,c as r,a0 as t,o as i}from"./chunks/framework.P9qPzDnn.js";const f=JSON.parse('{"title":"Interface: Repeatable","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/features/clickables/repeatable/interfaces/Repeatable.md","filePath":"api/features/clickables/repeatable/interfaces/Repeatable.md","lastUpdated":null}'),o={name:"api/features/clickables/repeatable/interfaces/Repeatable.md"};function n(l,e,s,c,d,h){return i(),r("div",null,e[0]||(e[0]=[t('

Profectus / features/clickables/repeatable / Repeatable

Interface: Repeatable

An object that represents a feature with multiple "levels" with scaling requirements.

Extends

Properties

[VueFeature]

[VueFeature]: true

Used to identify Vue Features

Inherited from

VueFeature.[VueFeature]

Defined in

profectus/src/util/vue.tsx:43


amount

amount: Persistent<DecimalSource>

The current amount this repeatable has.

Defined in

profectus/src/features/clickables/repeatable.tsx:62


amountToIncrease

amountToIncrease: Ref<DecimalSource, DecimalSource>

How much amount can be increased by, or 1 if unclickable. *

Defined in

profectus/src/features/clickables/repeatable.tsx:66


canClick

canClick: Ref<boolean, boolean>

Whether or not the repeatable may be clicked.

Defined in

profectus/src/features/clickables/repeatable.tsx:58


classes?

optional classes: MaybeRef<Record<string, boolean>>

Dictionary of CSS classes to apply to this feature.

Inherited from

VueFeature.classes

Defined in

profectus/src/util/vue.tsx:35


components

components: MaybeGetter<Renderable>[]

The components to render inside the vue feature

Inherited from

VueFeature.components

Defined in

profectus/src/util/vue.tsx:39


display?

optional display: MaybeGetter<Renderable>

The display to use for this repeatable.

Defined in

profectus/src/features/clickables/repeatable.tsx:56


id

id: string

An auto-generated ID for identifying features that appear in the DOM. Will not persist between refreshes or updates.

Inherited from

VueFeature.id

Defined in

profectus/src/util/vue.tsx:31


initialAmount?

optional initialAmount: DecimalSource

The initial amount this repeatable has on a new save / after reset.

Defined in

profectus/src/features/clickables/repeatable.tsx:54


limit

limit: MaybeRef<DecimalSource>

The maximum amount obtainable for this repeatable.

Defined in

profectus/src/features/clickables/repeatable.tsx:52


maxed

maxed: Ref<boolean, boolean>

Whether or not this repeatable's amount is at it's limit.

Defined in

profectus/src/features/clickables/repeatable.tsx:64


onClick()

onClick: (event?) => void

A function that is called when the repeatable is clicked.

Parameters

event?

MouseEvent | TouchEvent

Returns

void

Defined in

profectus/src/features/clickables/repeatable.tsx:60


requirements

requirements: Requirements

The requirement(s) to increase this repeatable.

Defined in

profectus/src/features/clickables/repeatable.tsx:50


style?

optional style: MaybeRef<CSSProperties>

CSS to apply to this feature.

Inherited from

VueFeature.style

Defined in

profectus/src/util/vue.tsx:37


type

type: typeof RepeatableType

A symbol that helps identify features of the same type.

Defined in

profectus/src/features/clickables/repeatable.tsx:68


visibility?

optional visibility: MaybeRef<boolean | Visibility>

Whether this feature should be visible.

Inherited from

VueFeature.visibility

Defined in

profectus/src/util/vue.tsx:33


wrappers

wrappers: Wrapper[]

The components to render wrapped around the vue feature

Inherited from

VueFeature.wrappers

Defined in

profectus/src/util/vue.tsx:41

',126)]))}const p=a(o,[["render",n]]);export{f as __pageData,p as default};