import{_ as e,c as a,o as t,N as r}from"./chunks/framework.0799945b.js";const u=JSON.parse('{"title":"Interface: BaseChallenge","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/features/challenges/challenge.BaseChallenge.md","lastUpdated":null}'),n={name:"api/interfaces/features/challenges/challenge.BaseChallenge.md"},o=r('
features/challenges/challenge.BaseChallenge
The properties that are added onto a processed ChallengeOptions to create a Challenge.
• [Component]: GenericComponent
The Vue component used to render this feature.
profectus/src/features/challenges/challenge.tsx:114
• [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/challenges/challenge.tsx:116
• active: Persistent
<boolean
>
Whether or not this challenge is currently active.
profectus/src/features/challenges/challenge.tsx:103
• canComplete: Ref
<DecimalSource
>
The current amount of times this challenge can be completed.
profectus/src/features/challenges/challenge.tsx:95
• complete: (remainInChallenge?
: boolean
) => void
▸ (remainInChallenge?
): void
A function to complete this challenge.
Name | Type | Description |
---|---|---|
remainInChallenge? | boolean | Optional parameter to specify if the challenge should remain active after completion. |
void
profectus/src/features/challenges/challenge.tsx:110
• completed: Ref
<boolean
>
Whether or not this challenge has been completed.
profectus/src/features/challenges/challenge.tsx:99
• completions: Persistent
<DecimalSource
>
The current number of times this challenge has been completed.
profectus/src/features/challenges/challenge.tsx:97
• id: string
An auto-generated ID for identifying features that appear in the DOM. Will not persist between refreshes or updates.
profectus/src/features/challenges/challenge.tsx:93
• maxed: Ref
<boolean
>
Whether or not this challenge's completion count is at its limit.
profectus/src/features/challenges/challenge.tsx:101
• toggle: VoidFunction
A function to enter or leave the challenge.
profectus/src/features/challenges/challenge.tsx:105
• type: typeof ChallengeType
A symbol that helps identify features of the same type.