diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/firm/ManagedConfig.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/firm/ManagedConfig.kt | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main/kotlin/moe/nea/firm/ManagedConfig.kt b/src/main/kotlin/moe/nea/firm/ManagedConfig.kt index 0c2b8b4..741d6aa 100644 --- a/src/main/kotlin/moe/nea/firm/ManagedConfig.kt +++ b/src/main/kotlin/moe/nea/firm/ManagedConfig.kt @@ -4,16 +4,14 @@ import ext.StringIdentifiable import kotlin.enums.enumEntries -abstract class ManagedConfig(val identifier: String) { +abstract class ManagedConfig { protected fun <E : Any> choice( codec: Codec<E>, renderer: EnumRenderer<E>, - ): ManagedOption<E> { - return TODO() - } + ) {} protected inline fun <reified E> choice( - ): ManagedOption<E> where E : Enum<E>, E : StringIdentifiable { + ) where E : Enum<E>, E : StringIdentifiable { return choice( StringIdentifiable.createCodec { enumValues<E>() }, EnumRenderer.default(), |