diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/features/NEUFeature.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/notenoughupdates/features/NEUFeature.kt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/notenoughupdates/features/NEUFeature.kt b/src/main/kotlin/moe/nea/notenoughupdates/features/NEUFeature.kt new file mode 100644 index 0000000..1d3628e --- /dev/null +++ b/src/main/kotlin/moe/nea/notenoughupdates/features/NEUFeature.kt @@ -0,0 +1,16 @@ +package moe.nea.notenoughupdates.features + +interface NEUFeature { + val name: String + val identifier: String + val defaultEnabled: Boolean + get() = true + var isEnabled: Boolean + get() = FeatureManager.isEnabled(identifier) ?: defaultEnabled + set(value) { + FeatureManager.setEnabled(identifier, value) + } + + fun onLoad() + +} |