import{_ as a,c as r,a0 as t,o as i}from"./chunks/framework.P9qPzDnn.js";const p=JSON.parse('{"title":"Interface: Upgrade","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/features/clickables/upgrade/interfaces/Upgrade.md","filePath":"api/features/clickables/upgrade/interfaces/Upgrade.md","lastUpdated":null}'),o={name:"api/features/clickables/upgrade/interfaces/Upgrade.md"};function n(s,e,c,d,l,u){return i(),r("div",null,e[0]||(e[0]=[t('
Profectus / features/clickables/upgrade / Upgrade
An object that represents a feature that can be purchased a single time.
[VueFeature]:
true
Used to identify Vue Features
bought:
Persistent
<boolean
>
Whether or not this upgrade has been purchased.
profectus/src/features/clickables/upgrade.tsx:59
canPurchase:
Ref
<boolean
,boolean
>
Whether or not the upgrade can currently be purchased.
profectus/src/features/clickables/upgrade.tsx:61
Dictionary of CSS classes to apply to this feature.
components:
MaybeGetter
<Renderable
>[]
The components to render inside the vue feature
optional
display:MaybeGetter
<Renderable
>
The display to use for this upgrade.
profectus/src/features/clickables/upgrade.tsx:57
id:
string
An auto-generated ID for identifying features that appear in the DOM. Will not persist between refreshes or updates.
optional
onPurchase:VoidFunction
A function that is called when the upgrade is purchased.
profectus/src/features/clickables/upgrade.tsx:63
purchase:
VoidFunction
Purchase the upgrade
profectus/src/features/clickables/upgrade.tsx:65
requirements:
Requirements
The requirements to purchase this upgrade.
profectus/src/features/clickables/upgrade.tsx:55
optional
style:MaybeRef
<CSSProperties
>
CSS to apply to this feature.
type: typeof
UpgradeType
A symbol that helps identify features of the same type.
profectus/src/features/clickables/upgrade.tsx:67
optional
visibility:MaybeRef
<boolean | Visibility>
Whether this feature should be visible.
wrappers:
Wrapper
[]
The components to render wrapped around the vue feature