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 ​
Defined in ​
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? ​
Dictionary of CSS classes to apply to this feature.
Inherited from ​
Defined in ​
components ​
components:
MaybeGetter
<Renderable
>[]
The components to render inside the vue feature
Inherited from ​
Defined in ​
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 ​
Defined in ​
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? ​
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 ​
Defined in ​
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 ​
Defined in ​
wrappers ​
wrappers:
Wrapper
[]
The components to render wrapped around the vue feature