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('

Interface: BaseUpgrade

features/upgrades/upgrade.BaseUpgrade

The properties that are added onto a processed UpgradeOptions to create an Upgrade.

Properties

[Component]

[Component]: GenericComponent

The Vue component used to render this feature.

Defined in

profectus/src/features/upgrades/upgrade.ts:87


[GatherProps]

[GatherProps]: () => Record<string, unknown>

Type declaration

▸ (): Record<string, unknown>

A function to gather the props the vue component requires for this feature.

Returns

Record<string, unknown>

Defined in

profectus/src/features/upgrades/upgrade.ts:89


bought

bought: Persistent<boolean>

Whether or not this upgrade has been purchased.

Defined in

profectus/src/features/upgrades/upgrade.ts:79


canPurchase

canPurchase: Ref<boolean>

Whether or not the upgrade can currently be purchased.

Defined in

profectus/src/features/upgrades/upgrade.ts:81


id

id: string

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

Defined in

profectus/src/features/upgrades/upgrade.ts:77


purchase

purchase: VoidFunction

Purchase the upgrade

Defined in

profectus/src/features/upgrades/upgrade.ts:83


type

type: typeof UpgradeType

A symbol that helps identify features of the same type.

Defined in

profectus/src/features/upgrades/upgrade.ts:85

',49),s=[n];function d(p,i,c,u,h,f){return r(),a("div",null,s)}const b=e(o,[["render",d]]);export{g as __pageData,b as default};