Interface: BaseUpgrade
features/upgrades/upgrade.BaseUpgrade
Properties
[Component]
• [Component]: DefineComponent
<{ bought
: { required
: true
= true; type
: PropType
<ProcessedComputable
<boolean
>> } ; canPurchase
: { required
: true
= true; type
: PropType
<ProcessedComputable
<boolean
>> } ; classes
: PropType
<ProcessedComputable
<Record
<string
, boolean
>>> ; cost
: PropType
<ProcessedComputable
<DecimalSource
>> ; display
: { required
: true
= true; type
: PropType
<ProcessedComputable
<undefined
| CoercableComponent
| { description
: CoercableComponent
; effectDisplay?
: CoercableComponent
; title?
: CoercableComponent
} | { description
: CoercableComponent
; effectDisplay?
: CoercableComponent
; title?
: CoercableComponent
}>> } ; id
: { required
: true
= true; type
: StringConstructor
= String } ; mark
: PropType
<ProcessedComputable
<string
| boolean
>> ; purchase
: { required
: true
= true; type
: PropType
<VoidFunction
> } ; resource
: PropType
<Resource
<DecimalSource
>> ; style
: PropType
<ProcessedComputable
<StyleValue
>> ; visibility
: { required
: true
= true; type
: PropType
<ProcessedComputable
<Visibility
>> } }, { Visibility
: typeof Visibility
; component
: ShallowRef
<string
| Component
<any
, any
, any
, ComputedOptions
, MethodOptions
>> ; unref
: <T>(ref
: T
| Ref
<T
>) => T
}, unknown
, {}, {}, ComponentOptionsMixin
, ComponentOptionsMixin
, Record
<string
, any
>, string
, PublicProps
, Readonly
<ExtractPropTypes
<{ bought
: { required
: true
= true; type
: PropType
<ProcessedComputable
<boolean
>> } ; canPurchase
: { required
: true
= true; type
: PropType
<ProcessedComputable
<boolean
>> } ; classes
: PropType
<ProcessedComputable
<Record
<string
, boolean
>>> ; cost
: PropType
<ProcessedComputable
<DecimalSource
>> ; display
: { required
: true
= true; type
: PropType
<ProcessedComputable
<undefined
| CoercableComponent
| { description
: CoercableComponent
; effectDisplay?
: CoercableComponent
; title?
: CoercableComponent
} | { description
: CoercableComponent
; effectDisplay?
: CoercableComponent
; title?
: CoercableComponent
}>> } ; id
: { required
: true
= true; type
: StringConstructor
= String } ; mark
: PropType
<ProcessedComputable
<string
| boolean
>> ; purchase
: { required
: true
= true; type
: PropType
<VoidFunction
> } ; resource
: PropType
<Resource
<DecimalSource
>> ; style
: PropType
<ProcessedComputable
<StyleValue
>> ; visibility
: { required
: true
= true; type
: PropType
<ProcessedComputable
<Visibility
>> } }>>, {}>
Defined in
profectus/src/features/upgrades/upgrade.ts:56
bought
• bought: Persistent
<boolean
>
Defined in
profectus/src/features/upgrades/upgrade.ts:52
canPurchase
• canPurchase: Ref
<boolean
>
Defined in
profectus/src/features/upgrades/upgrade.ts:53
id
• id: string
Defined in
profectus/src/features/upgrades/upgrade.ts:51
purchase
• purchase: VoidFunction
Defined in
profectus/src/features/upgrades/upgrade.ts:54
type
• type: typeof UpgradeType
Defined in
profectus/src/features/upgrades/upgrade.ts:55
Methods
[GatherProps]
▸ [GatherProps](): Record
<string
, unknown
>
Returns
Record
<string
, unknown
>