import{_ as e,c as a,o as r,N as t}from"./chunks/framework.0799945b.js";const g=JSON.parse('{"title":"Interface: BaseUpgrade","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/features/upgrades/upgrade.BaseUpgrade.md","lastUpdated":null}'),o={name:"api/interfaces/features/upgrades/upgrade.BaseUpgrade.md"},n=t('
features/upgrades/upgrade.BaseUpgrade
The properties that are added onto a processed UpgradeOptions to create an Upgrade.
• [Component]: GenericComponent
The Vue component used to render this feature.
profectus/src/features/upgrades/upgrade.ts:87
• [GatherProps]: () => Record
<string
, unknown
>
▸ (): Record
<string
, unknown
>
A function to gather the props the vue component requires for this feature.
Record
<string
, unknown
>
profectus/src/features/upgrades/upgrade.ts:89
• bought: Persistent
<boolean
>
Whether or not this upgrade has been purchased.
profectus/src/features/upgrades/upgrade.ts:79
• canPurchase: Ref
<boolean
>
Whether or not the upgrade can currently be purchased.
profectus/src/features/upgrades/upgrade.ts:81
• id: string
An auto-generated ID for identifying features that appear in the DOM. Will not persist between refreshes or updates.
profectus/src/features/upgrades/upgrade.ts:77
• purchase: VoidFunction
Purchase the upgrade
profectus/src/features/upgrades/upgrade.ts:83
• type: typeof UpgradeType
A symbol that helps identify features of the same type.