import{_ as e,c as a,o as t,N as r}from"./chunks/framework.0799945b.js";const g=JSON.parse('{"title":"Interface: ChallengeOptions","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/features/challenges/challenge.ChallengeOptions.md","lastUpdated":null}'),o={name:"api/interfaces/features/challenges/challenge.ChallengeOptions.md"},n=r('
features/challenges/challenge.ChallengeOptions
An object that configures a Challenge.
• Optional
canStart: Computable
<boolean
>
Whether this challenge can be started.
profectus/src/features/challenges/challenge.tsx:49
• Optional
classes: Computable
<Record
<string
, boolean
>>
Dictionary of CSS classes to apply to this feature.
profectus/src/features/challenges/challenge.tsx:61
• Optional
completionLimit: Computable
<DecimalSource
>
The maximum number of times the challenge can be completed.
profectus/src/features/challenges/challenge.tsx:57
• Optional
display: Computable
<CoercableComponent
| { description
: CoercableComponent
; effectDisplay?
: CoercableComponent
; goal?
: CoercableComponent
; reward?
: CoercableComponent
; title?
: CoercableComponent
}>
The display to use for this challenge.
profectus/src/features/challenges/challenge.tsx:65
• Optional
mark: Computable
<string
| boolean
>
Shows a marker on the corner of the feature.
profectus/src/features/challenges/challenge.tsx:59
• Optional
maximize: Computable
<boolean
>
Whether or not completing this challenge should grant multiple completions if requirements met. Requires requirements to be a requirement or array of requirements with Requirement.canMaximize true.
profectus/src/features/challenges/challenge.tsx:55
• Optional
onComplete: VoidFunction
A function that is called when the challenge is completed.
profectus/src/features/challenges/challenge.tsx:81
• Optional
onEnter: VoidFunction
A function that is called when the challenge is entered.
profectus/src/features/challenges/challenge.tsx:85
• Optional
onExit: VoidFunction
A function that is called when the challenge is exited.
profectus/src/features/challenges/challenge.tsx:83
• requirements: Requirements
The requirement(s) to complete this challenge.
profectus/src/features/challenges/challenge.tsx:53
• Optional
reset: GenericReset
The reset function for this challenge.
profectus/src/features/challenges/challenge.tsx:51
• Optional
style: Computable
<StyleValue
>
CSS to apply to this feature.
profectus/src/features/challenges/challenge.tsx:63
• Optional
visibility: Computable
<boolean
| Visibility
>
Whether this challenge should be visible.