aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/features/NEUFeature.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-05-18 03:20:22 +0200
committernea <nea@nea.moe>2023-05-18 03:20:22 +0200
commit1dd603ab1cc42a602f1d82595dd15789ef63d2a3 (patch)
tree1658e1d32849d69102ff1e1b4c856da8428ab82b /src/main/kotlin/moe/nea/firmament/features/NEUFeature.kt
parent3ebe3e80b929b03ad0bcb0c76cec6b3285fe08bd (diff)
downloadfirmament-1dd603ab1cc42a602f1d82595dd15789ef63d2a3.tar.gz
firmament-1dd603ab1cc42a602f1d82595dd15789ef63d2a3.tar.bz2
firmament-1dd603ab1cc42a602f1d82595dd15789ef63d2a3.zip
Add slot locking
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/features/NEUFeature.kt')
-rw-r--r--src/main/kotlin/moe/nea/firmament/features/NEUFeature.kt18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/features/NEUFeature.kt b/src/main/kotlin/moe/nea/firmament/features/NEUFeature.kt
deleted file mode 100644
index f231003..0000000
--- a/src/main/kotlin/moe/nea/firmament/features/NEUFeature.kt
+++ /dev/null
@@ -1,18 +0,0 @@
-package moe.nea.firmament.features
-
-import moe.nea.firmament.util.config.ManagedConfig
-
-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)
- }
- val config: ManagedConfig? get() = null
- fun onLoad()
-
-}