Interface: BaseUpgrade
features/upgrades/upgrade.BaseUpgrade
Hierarchy
Persistent
<boolean
>↳
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:55
[DefaultValue]
• [DefaultValue]: boolean
Inherited from
Persistent.__@DefaultValue@18652
Defined in
profectus/src/game/persistence.ts:25
[PersistentState]
• [PersistentState]: Ref
<boolean
>
Inherited from
Persistent.__@PersistentState@18650
Defined in
profectus/src/game/persistence.ts:24
bought
• bought: Ref
<boolean
>
Defined in
profectus/src/features/upgrades/upgrade.ts:51
canPurchase
• canPurchase: Ref
<boolean
>
Defined in
profectus/src/features/upgrades/upgrade.ts:52
id
• id: string
Defined in
profectus/src/features/upgrades/upgrade.ts:50
purchase
• purchase: VoidFunction
Defined in
profectus/src/features/upgrades/upgrade.ts:53
type
• type: typeof UpgradeType
Defined in
profectus/src/features/upgrades/upgrade.ts:54
Methods
[GatherProps]
▸ [GatherProps](): Record
<string
, unknown
>
Returns
Record
<string
, unknown
>