aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/annotations/Selector.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/annotations/Selector.java')
-rw-r--r--src/main/java/io/polyfrost/oneconfig/annotations/Selector.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/annotations/Selector.java b/src/main/java/io/polyfrost/oneconfig/annotations/Selector.java
new file mode 100644
index 0000000..39d238c
--- /dev/null
+++ b/src/main/java/io/polyfrost/oneconfig/annotations/Selector.java
@@ -0,0 +1,15 @@
+package io.polyfrost.oneconfig.annotations;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.FIELD)
+public @interface Selector {
+ String name();
+ String description() default "";
+ String[] options();
+ int defaultSelection() default 0;
+}