diff options
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/test')
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/test/TestConfig.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/test/TestConfig.java b/src/main/java/io/polyfrost/oneconfig/test/TestConfig.java new file mode 100644 index 0000000..21259ac --- /dev/null +++ b/src/main/java/io/polyfrost/oneconfig/test/TestConfig.java @@ -0,0 +1,24 @@ +package io.polyfrost.oneconfig.test; + +import io.polyfrost.oneconfig.annotations.Category; +import io.polyfrost.oneconfig.annotations.Switch; +import io.polyfrost.oneconfig.annotations.TextField; +import io.polyfrost.oneconfig.interfaces.Config; + +import java.io.File; + +public class TestConfig extends Config { + + @Switch(name = "Cool Switch") + public static boolean toggle = false; + + @Category(name = "Cool Category") + public static class category { + @TextField(name = "Cool text field") + public static String text = "e"; + } + + public TestConfig() { + super(new File("./config/testConfig.json")); + } +} |