aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/FeatureToggle.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2023-08-29 20:25:01 +0200
committerGitHub <noreply@github.com>2023-08-29 20:25:01 +0200
commit71a6b08b376be7d742107df982905cac0d7ecf70 (patch)
treea4b5f0cc511444ccd833c281b8600d9ff434231b /src/main/java/at/hannibal2/skyhanni/config/FeatureToggle.kt
parent238085dd49de8bca06ed816bc7a8d369390cdf30 (diff)
downloadskyhanni-71a6b08b376be7d742107df982905cac0d7ecf70.tar.gz
skyhanni-71a6b08b376be7d742107df982905cac0d7ecf70.tar.bz2
skyhanni-71a6b08b376be7d742107df982905cac0d7ecf70.zip
Add default option selector #400
* Allow for update only options * Clean/Split up mass configuration options * Merge remote-tracking branch 'origin/beta' into feat/defaultoptions * Fix merge errors
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/FeatureToggle.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/FeatureToggle.kt15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/FeatureToggle.kt b/src/main/java/at/hannibal2/skyhanni/config/FeatureToggle.kt
new file mode 100644
index 000000000..bf9db0553
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/config/FeatureToggle.kt
@@ -0,0 +1,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,
+)