aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/FeatureToggle.kt
blob: bf9db05530fc8606d9dd9f16105080d70833de6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package at.hannibal2.skyhanni.config

import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean

/**
 * Annotate a [ConfigEditorBoolean] to indicate that it is a feature toggle.
 */
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FIELD)
annotation class FeatureToggle(
    /**
     * Indicate that this field being true means the corresponding feature is enabled.
     */
    val trueIsEnabled: Boolean = true,
)