import{_ as a,c as t,a0 as r,o}from"./chunks/framework.P9qPzDnn.js";const p=JSON.parse('{"title":"Interface: ChallengeOptions","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/features/challenges/challenge/interfaces/ChallengeOptions.md","filePath":"api/features/challenges/challenge/interfaces/ChallengeOptions.md","lastUpdated":null}'),n={name:"api/features/challenges/challenge/interfaces/ChallengeOptions.md"};function l(i,e,c,s,d,h){return o(),t("div",null,e[0]||(e[0]=[r('
Profectus / features/challenges/challenge / ChallengeOptions
An object that configures a Challenge.
optional
canStart:MaybeRefOrGetter
<boolean
>
Whether this challenge can be started.
profectus/src/features/challenges/challenge.tsx:33
optional
classes:MaybeRefOrGetter
<Record
<string
,boolean
>>
Dictionary of CSS classes to apply to this feature.
optional
completionLimit:MaybeRefOrGetter
<DecimalSource
>
The maximum number of times the challenge can be completed.
profectus/src/features/challenges/challenge.tsx:39
optional
display:MaybeGetter
<Renderable
> | {description
:MaybeGetter
<Renderable
>;effectDisplay
: MaybeGetter<Renderable> | undefined;goal
: MaybeGetter<Renderable> | undefined;reward
: MaybeGetter<Renderable> | undefined;title
: MaybeGetter<Renderable> | undefined; }
The display to use for this challenge.
{ description
: MaybeGetter
<Renderable
>; effectDisplay
: MaybeGetter<Renderable> | undefined; goal
: MaybeGetter<Renderable> | undefined; reward
: MaybeGetter<Renderable> | undefined; title
: MaybeGetter<Renderable> | undefined; }
description:
MaybeGetter
<Renderable
>
The main text that appears in the display.
optional
effectDisplay: MaybeGetter<Renderable> | undefined
A description of the current effect of this challenge.
optional
goal: MaybeGetter<Renderable> | undefined
A description of the current goal for this challenge. If unspecified then the requirements will be displayed automatically based on requirements.
optional
reward: MaybeGetter<Renderable> | undefined
A description of what will change upon completing this challenge.
optional
title: MaybeGetter<Renderable> | undefined
A header to appear at the top of the display.
profectus/src/features/challenges/challenge.tsx:41
optional
onComplete:VoidFunction
A function that is called when the challenge is completed.
profectus/src/features/challenges/challenge.tsx:56
optional
onEnter:VoidFunction
A function that is called when the challenge is entered.
profectus/src/features/challenges/challenge.tsx:60
optional
onExit:VoidFunction
A function that is called when the challenge is exited.
profectus/src/features/challenges/challenge.tsx:58
requirements:
Requirements
The requirement(s) to complete this challenge.
profectus/src/features/challenges/challenge.tsx:37
optional
reset:Reset
The reset function for this challenge.
profectus/src/features/challenges/challenge.tsx:35
optional
style:MaybeRefOrGetter
<CSSProperties
>
CSS to apply to this feature.
optional
visibility:MaybeRefOrGetter
<boolean | Visibility>
Whether this feature should be visible.