mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-11 02:50:15 +08:00
Fix build
This commit is contained in:
parent
e76cfe8c69
commit
9f8ce56f15
@ -13,8 +13,6 @@ package net.mamoe.mirai.console.plugin.jvm
|
||||
|
||||
import net.mamoe.mirai.console.plugin.internal.JvmPluginInternal
|
||||
import net.mamoe.mirai.console.setting.Setting
|
||||
import net.mamoe.mirai.console.setting.getValue
|
||||
import net.mamoe.mirai.console.setting.value
|
||||
import kotlin.coroutines.CoroutineContext
|
||||
import kotlin.coroutines.EmptyCoroutineContext
|
||||
|
||||
@ -31,11 +29,3 @@ abstract class AbstractJvmPlugin @JvmOverloads constructor(
|
||||
|
||||
override fun <T : Setting> getSetting(clazz: Class<T>): T = loader.settingStorage.load(this, clazz)
|
||||
}
|
||||
|
||||
|
||||
object MyPlugin : KotlinPlugin()
|
||||
|
||||
object TestSetting : Setting by MyPlugin.getSetting() {
|
||||
val account by value("123456")
|
||||
val password by value("123")
|
||||
}
|
@ -55,6 +55,8 @@ interface Setting {
|
||||
|
||||
// TODO: 2020/6/26 document
|
||||
val updaterSerializer: KSerializer<Unit>
|
||||
|
||||
fun onValueChanged(value: Value<*>)
|
||||
}
|
||||
|
||||
//// region Setting_value_primitives CODEGEN ////
|
||||
|
@ -7,6 +7,8 @@
|
||||
* https://github.com/mamoe/mirai/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
@file:Suppress("unused")
|
||||
|
||||
package net.mamoe.mirai.console.command
|
||||
|
||||
import net.mamoe.mirai.contact.Member
|
||||
|
Loading…
Reference in New Issue
Block a user