Interface: BaseAchievement
features/achievements/achievement.BaseAchievement
The properties that are added onto a processed AchievementOptions to create an Achievement.
Properties
[Component]
• [Component]: GenericComponent
The Vue component used to render this feature.
Defined in
profectus/src/features/achievements/achievement.tsx:107
[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/achievements/achievement.tsx:109
complete
• complete: VoidFunction
A function to complete this achievement.
Defined in
profectus/src/features/achievements/achievement.tsx:103
earned
• earned: Persistent
<boolean
>
Whether or not this achievement has been earned.
Defined in
profectus/src/features/achievements/achievement.tsx:101
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/achievements/achievement.tsx:99
type
• type: typeof AchievementType
A symbol that helps identify features of the same type.